ata-cbus.c (249083) | ata-cbus.c (249213) |
---|---|
1/*- 2 * Copyright (c) 2002 - 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) 2002 - 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/ata-cbus.c 249083 2013-04-04 07:12:24Z mav $"); | 28__FBSDID("$FreeBSD: head/sys/dev/ata/ata-cbus.c 249213 2013-04-06 19:12:49Z marius $"); |
29 | 29 |
30#include "opt_ata.h" | |
31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/kernel.h> 34#include <sys/ata.h> 35#include <sys/bus.h> 36#include <sys/malloc.h> 37#include <sys/module.h> 38#include <sys/conf.h> --- 209 unchanged lines hidden (view full) --- 248static driver_t ata_cbus_driver = { 249 "atacbus", 250 ata_cbus_methods, 251 sizeof(struct ata_cbus_controller), 252}; 253 254static devclass_t ata_cbus_devclass; 255 | 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/kernel.h> 33#include <sys/ata.h> 34#include <sys/bus.h> 35#include <sys/malloc.h> 36#include <sys/module.h> 37#include <sys/conf.h> --- 209 unchanged lines hidden (view full) --- 247static driver_t ata_cbus_driver = { 248 "atacbus", 249 ata_cbus_methods, 250 sizeof(struct ata_cbus_controller), 251}; 252 253static devclass_t ata_cbus_devclass; 254 |
256DRIVER_MODULE(atacbus, isa, ata_cbus_driver, ata_cbus_devclass, 0, 0); | 255DRIVER_MODULE(atacbus, isa, ata_cbus_driver, ata_cbus_devclass, NULL, NULL); |
257 258static int 259ata_cbuschannel_probe(device_t dev) 260{ 261 char buffer[32]; 262 263 sprintf(buffer, "ATA channel %d", (int)(intptr_t)device_get_ivars(dev)); 264 device_set_desc_copy(dev, buffer); --- 85 unchanged lines hidden --- | 256 257static int 258ata_cbuschannel_probe(device_t dev) 259{ 260 char buffer[32]; 261 262 sprintf(buffer, "ATA channel %d", (int)(intptr_t)device_get_ivars(dev)); 263 device_set_desc_copy(dev, buffer); --- 85 unchanged lines hidden --- |