Deleted Added
full compact
ata-acerlabs.c (230132) ata-acerlabs.c (230627)
1/*-
2 * Copyright (c) 1998 - 2008 S��ren Schmidt <sos@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1998 - 2008 S��ren Schmidt <sos@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/ata/chipsets/ata-acerlabs.c 230132 2012-01-15 13:23:18Z uqs $");
28__FBSDID("$FreeBSD: head/sys/dev/ata/chipsets/ata-acerlabs.c 230627 2012-01-27 21:52:59Z marius $");
29
30#include "opt_ata.h"
31#include <sys/param.h>
32#include <sys/module.h>
33#include <sys/systm.h>
34#include <sys/kernel.h>
35#include <sys/ata.h>
36#include <sys/bus.h>

--- 171 unchanged lines hidden (view full) ---

208 if (ctlr->chip->cfg2 & ALI_NEW && ctlr->chip->chiprev < 0xc7)
209 ch->flags |= ATA_CHECKS_CABLE;
210 /* older chips can't do 48bit DMA transfers */
211 if (ctlr->chip->chiprev <= 0xc4) {
212 ch->flags |= ATA_NO_48BIT_DMA;
213 if (ch->dma.max_iosize > 256 * 512)
214 ch->dma.max_iosize = 256 * 512;
215 }
29
30#include "opt_ata.h"
31#include <sys/param.h>
32#include <sys/module.h>
33#include <sys/systm.h>
34#include <sys/kernel.h>
35#include <sys/ata.h>
36#include <sys/bus.h>

--- 171 unchanged lines hidden (view full) ---

208 if (ctlr->chip->cfg2 & ALI_NEW && ctlr->chip->chiprev < 0xc7)
209 ch->flags |= ATA_CHECKS_CABLE;
210 /* older chips can't do 48bit DMA transfers */
211 if (ctlr->chip->chiprev <= 0xc4) {
212 ch->flags |= ATA_NO_48BIT_DMA;
213 if (ch->dma.max_iosize > 256 * 512)
214 ch->dma.max_iosize = 256 * 512;
215 }
216#ifdef ATA_CAM
217 if (ctlr->chip->cfg2 & ALI_NEW)
218 ch->flags |= ATA_NO_ATAPI_DMA;
219#endif
216
217 return 0;
218}
219
220static int
221ata_ali_sata_ch_attach(device_t dev)
222{
223 device_t parent = device_get_parent(dev);

--- 125 unchanged lines hidden ---
220
221 return 0;
222}
223
224static int
225ata_ali_sata_ch_attach(device_t dev)
226{
227 device_t parent = device_get_parent(dev);

--- 125 unchanged lines hidden ---