Deleted Added
full compact
ata-highpoint.c (188765) ata-highpoint.c (188769)
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-highpoint.c 188765 2009-02-18 22:17:48Z mav $");
28__FBSDID("$FreeBSD: head/sys/dev/ata/chipsets/ata-highpoint.c 188769 2009-02-19 00:32:55Z mav $");
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>

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

130 /* set clocks etc */
131 if (ctlr->chip->cfg1 < HPT_372)
132 pci_write_config(dev, 0x5b, 0x22, 1);
133 else
134 pci_write_config(dev, 0x5b,
135 (pci_read_config(dev, 0x5b, 1) & 0x01) | 0x20, 1);
136 }
137 ctlr->ch_attach = ata_highpoint_ch_attach;
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>

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

130 /* set clocks etc */
131 if (ctlr->chip->cfg1 < HPT_372)
132 pci_write_config(dev, 0x5b, 0x22, 1);
133 else
134 pci_write_config(dev, 0x5b,
135 (pci_read_config(dev, 0x5b, 1) & 0x01) | 0x20, 1);
136 }
137 ctlr->ch_attach = ata_highpoint_ch_attach;
138 ctlr->ch_detach = ata_pci_ch_detach;
138 ctlr->setmode = ata_highpoint_setmode;
139 return 0;
140}
141
142static int
143ata_highpoint_ch_attach(device_t dev)
144{
145 struct ata_channel *ch = device_get_softc(dev);

--- 89 unchanged lines hidden ---
139 ctlr->setmode = ata_highpoint_setmode;
140 return 0;
141}
142
143static int
144ata_highpoint_ch_attach(device_t dev)
145{
146 struct ata_channel *ch = device_get_softc(dev);

--- 89 unchanged lines hidden ---