cam_xpt.c (130866) | cam_xpt.c (132199) |
---|---|
1/* 2 * Implementation of the Common Access Method Transport (XPT) layer. 3 * 4 * Copyright (c) 1997, 1998, 1999 Justin T. Gibbs. 5 * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry. 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 * Implementation of the Common Access Method Transport (XPT) layer. 3 * 4 * Copyright (c) 1997, 1998, 1999 Justin T. Gibbs. 5 * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry. 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/cam/cam_xpt.c 130866 2004-06-21 19:01:55Z ps $"); | 31__FBSDID("$FreeBSD: head/sys/cam/cam_xpt.c 132199 2004-07-15 08:26:07Z phk $"); |
32 33#include <sys/param.h> 34#include <sys/bus.h> 35#include <sys/systm.h> 36#include <sys/types.h> 37#include <sys/malloc.h> 38#include <sys/kernel.h> 39#include <sys/time.h> --- 1303 unchanged lines hidden (view full) --- 1343 1344static int 1345cam_module_event_handler(module_t mod, int what, void *arg) 1346{ 1347 if (what == MOD_LOAD) { 1348 xpt_init(NULL); 1349 } else if (what == MOD_UNLOAD) { 1350 return EBUSY; | 32 33#include <sys/param.h> 34#include <sys/bus.h> 35#include <sys/systm.h> 36#include <sys/types.h> 37#include <sys/malloc.h> 38#include <sys/kernel.h> 39#include <sys/time.h> --- 1303 unchanged lines hidden (view full) --- 1343 1344static int 1345cam_module_event_handler(module_t mod, int what, void *arg) 1346{ 1347 if (what == MOD_LOAD) { 1348 xpt_init(NULL); 1349 } else if (what == MOD_UNLOAD) { 1350 return EBUSY; |
1351 } else { 1352 return EOPNOTSUPP; |
|
1351 } 1352 1353 return 0; 1354} 1355 1356/* Functions accessed by the peripheral drivers */ 1357static void 1358xpt_init(dummy) --- 5695 unchanged lines hidden --- | 1353 } 1354 1355 return 0; 1356} 1357 1358/* Functions accessed by the peripheral drivers */ 1359static void 1360xpt_init(dummy) --- 5695 unchanged lines hidden --- |