ctl_frontend_cam_sim.c (272798) | ctl_frontend_cam_sim.c (275493) |
---|---|
1/*- 2 * Copyright (c) 2009 Silicon Graphics International Corp. 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 --- 23 unchanged lines hidden (view full) --- 32/* 33 * CTL frontend to CAM SIM interface. This allows access to CTL LUNs via 34 * the da(4) and pass(4) drivers from inside the system. 35 * 36 * Author: Ken Merry <ken@FreeBSD.org> 37 */ 38 39#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009 Silicon Graphics International Corp. 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 --- 23 unchanged lines hidden (view full) --- 32/* 33 * CTL frontend to CAM SIM interface. This allows access to CTL LUNs via 34 * the da(4) and pass(4) drivers from inside the system. 35 * 36 * Author: Ken Merry <ken@FreeBSD.org> 37 */ 38 39#include <sys/cdefs.h> |
40__FBSDID("$FreeBSD: stable/10/sys/cam/ctl/ctl_frontend_cam_sim.c 272798 2014-10-09 05:28:11Z mav $"); | 40__FBSDID("$FreeBSD: stable/10/sys/cam/ctl/ctl_frontend_cam_sim.c 275493 2014-12-05 07:23:25Z mav $"); |
41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/kernel.h> 45#include <sys/types.h> 46#include <sys/malloc.h> 47#include <sys/lock.h> 48#include <sys/mutex.h> --- 110 unchanged lines hidden (view full) --- 159 port->fe_datamove = cfcs_datamove; 160 port->fe_done = cfcs_done; 161 162 /* XXX KDM what should we report here? */ 163 /* XXX These should probably be fetched from CTL. */ 164 port->max_targets = 1; 165 port->max_target_id = 15; 166 | 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/kernel.h> 45#include <sys/types.h> 46#include <sys/malloc.h> 47#include <sys/lock.h> 48#include <sys/mutex.h> --- 110 unchanged lines hidden (view full) --- 159 port->fe_datamove = cfcs_datamove; 160 port->fe_done = cfcs_done; 161 162 /* XXX KDM what should we report here? */ 163 /* XXX These should probably be fetched from CTL. */ 164 port->max_targets = 1; 165 port->max_target_id = 15; 166 |
167 retval = ctl_port_register(port, /*master_SC*/ 1); | 167 retval = ctl_port_register(port); |
168 if (retval != 0) { 169 printf("%s: ctl_port_register() failed with error %d!\n", 170 __func__, retval); 171 mtx_destroy(&softc->lock); 172 return (retval); 173 } 174 175 /* --- 653 unchanged lines hidden --- | 168 if (retval != 0) { 169 printf("%s: ctl_port_register() failed with error %d!\n", 170 __func__, retval); 171 mtx_destroy(&softc->lock); 172 return (retval); 173 } 174 175 /* --- 653 unchanged lines hidden --- |