aac_disk.c (238601) | aac_disk.c (247570) |
---|---|
1/*- 2 * Copyright (c) 2000 Michael Smith 3 * Copyright (c) 2001 Scott Long 4 * Copyright (c) 2000 BSDi 5 * Copyright (c) 2001 Adaptec, Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000 Michael Smith 3 * Copyright (c) 2001 Scott Long 4 * Copyright (c) 2000 BSDi 5 * Copyright (c) 2001 Adaptec, Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/aac/aac_disk.c 238601 2012-07-18 18:10:27Z sbruno $"); | 31__FBSDID("$FreeBSD: head/sys/dev/aac/aac_disk.c 247570 2013-03-01 19:55:10Z marius $"); |
32 33#include "opt_aac.h" 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/kernel.h> 38#include <sys/module.h> 39 --- 28 unchanged lines hidden (view full) --- 68static dumper_t aac_disk_dump; 69 70static devclass_t aac_disk_devclass; 71 72static device_method_t aac_disk_methods[] = { 73 DEVMETHOD(device_probe, aac_disk_probe), 74 DEVMETHOD(device_attach, aac_disk_attach), 75 DEVMETHOD(device_detach, aac_disk_detach), | 32 33#include "opt_aac.h" 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/kernel.h> 38#include <sys/module.h> 39 --- 28 unchanged lines hidden (view full) --- 68static dumper_t aac_disk_dump; 69 70static devclass_t aac_disk_devclass; 71 72static device_method_t aac_disk_methods[] = { 73 DEVMETHOD(device_probe, aac_disk_probe), 74 DEVMETHOD(device_attach, aac_disk_attach), 75 DEVMETHOD(device_detach, aac_disk_detach), |
76 { 0, 0 } | 76 DEVMETHOD_END |
77}; 78 79static driver_t aac_disk_driver = { 80 "aacd", 81 aac_disk_methods, 82 sizeof(struct aac_disk) 83}; 84 | 77}; 78 79static driver_t aac_disk_driver = { 80 "aacd", 81 aac_disk_methods, 82 sizeof(struct aac_disk) 83}; 84 |
85DRIVER_MODULE(aacd, aac, aac_disk_driver, aac_disk_devclass, 0, 0); | 85DRIVER_MODULE(aacd, aac, aac_disk_driver, aac_disk_devclass, NULL, NULL); |
86 87/* 88 * Handle open from generic layer. 89 * 90 * This is called by the diskslice code on first open in order to get the 91 * basic device geometry paramters. 92 */ 93static int --- 342 unchanged lines hidden --- | 86 87/* 88 * Handle open from generic layer. 89 * 90 * This is called by the diskslice code on first open in order to get the 91 * basic device geometry paramters. 92 */ 93static int --- 342 unchanged lines hidden --- |