aac_cam.c (246713) | aac_cam.c (247570) |
---|---|
1/*- 2 * Copyright (c) 2002 Adaptec, Inc. 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 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002 Adaptec, Inc. 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 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/aac/aac_cam.c 246713 2013-02-12 16:57:20Z kib $"); | 28__FBSDID("$FreeBSD: head/sys/dev/aac/aac_cam.c 247570 2013-03-01 19:55:10Z marius $"); |
29 30/* 31 * CAM front-end for communicating with non-DASD devices 32 */ 33 34#include "opt_aac.h" 35 36#include <sys/param.h> --- 50 unchanged lines hidden (view full) --- 87static u_int32_t aac_cam_term_io(struct cam_sim *, union ccb *); 88 89static devclass_t aac_pass_devclass; 90 91static device_method_t aac_pass_methods[] = { 92 DEVMETHOD(device_probe, aac_cam_probe), 93 DEVMETHOD(device_attach, aac_cam_attach), 94 DEVMETHOD(device_detach, aac_cam_detach), | 29 30/* 31 * CAM front-end for communicating with non-DASD devices 32 */ 33 34#include "opt_aac.h" 35 36#include <sys/param.h> --- 50 unchanged lines hidden (view full) --- 87static u_int32_t aac_cam_term_io(struct cam_sim *, union ccb *); 88 89static devclass_t aac_pass_devclass; 90 91static device_method_t aac_pass_methods[] = { 92 DEVMETHOD(device_probe, aac_cam_probe), 93 DEVMETHOD(device_attach, aac_cam_attach), 94 DEVMETHOD(device_detach, aac_cam_detach), |
95 { 0, 0 } | 95 DEVMETHOD_END |
96}; 97 98static driver_t aac_pass_driver = { 99 "aacp", 100 aac_pass_methods, 101 sizeof(struct aac_cam) 102}; 103 | 96}; 97 98static driver_t aac_pass_driver = { 99 "aacp", 100 aac_pass_methods, 101 sizeof(struct aac_cam) 102}; 103 |
104DRIVER_MODULE(aacp, aac, aac_pass_driver, aac_pass_devclass, 0, 0); | 104DRIVER_MODULE(aacp, aac, aac_pass_driver, aac_pass_devclass, NULL, NULL); |
105MODULE_DEPEND(aacp, cam, 1, 1, 1); 106 107static MALLOC_DEFINE(M_AACCAM, "aaccam", "AAC CAM info"); 108 109static void 110aac_cam_rescan(struct aac_softc *sc, uint32_t channel, uint32_t target_id) 111{ 112 union ccb *ccb; --- 567 unchanged lines hidden (view full) --- 680 return (CAM_UA_ABORT); 681} 682 683static u_int32_t 684aac_cam_term_io(struct cam_sim *sim, union ccb *ccb) 685{ 686 return (CAM_UA_TERMIO); 687} | 105MODULE_DEPEND(aacp, cam, 1, 1, 1); 106 107static MALLOC_DEFINE(M_AACCAM, "aaccam", "AAC CAM info"); 108 109static void 110aac_cam_rescan(struct aac_softc *sc, uint32_t channel, uint32_t target_id) 111{ 112 union ccb *ccb; --- 567 unchanged lines hidden (view full) --- 680 return (CAM_UA_ABORT); 681} 682 683static u_int32_t 684aac_cam_term_io(struct cam_sim *sim, union ccb *ccb) 685{ 686 return (CAM_UA_TERMIO); 687} |
688 | |