zfcp_ccw.c (86bdf218a717b77cb775b82ce48c7847cb72a86d) zfcp_ccw.c (663e0890e31cb85f0cca5ac1faaee0d2d52880b5)
1/*
2 * zfcp device driver
3 *
4 * Registration and callback for the s390 common I/O layer.
5 *
6 * Copyright IBM Corp. 2002, 2010
7 */
8

--- 58 unchanged lines hidden (view full) ---

67static struct ccw_device_id zfcp_ccw_device_id[] = {
68 { CCW_DEVICE_DEVTYPE(0x1731, 0x3, 0x1732, 0x3) },
69 { CCW_DEVICE_DEVTYPE(0x1731, 0x3, 0x1732, ZFCP_MODEL_PRIV) },
70 {},
71};
72MODULE_DEVICE_TABLE(ccw, zfcp_ccw_device_id);
73
74/**
1/*
2 * zfcp device driver
3 *
4 * Registration and callback for the s390 common I/O layer.
5 *
6 * Copyright IBM Corp. 2002, 2010
7 */
8

--- 58 unchanged lines hidden (view full) ---

67static struct ccw_device_id zfcp_ccw_device_id[] = {
68 { CCW_DEVICE_DEVTYPE(0x1731, 0x3, 0x1732, 0x3) },
69 { CCW_DEVICE_DEVTYPE(0x1731, 0x3, 0x1732, ZFCP_MODEL_PRIV) },
70 {},
71};
72MODULE_DEVICE_TABLE(ccw, zfcp_ccw_device_id);
73
74/**
75 * zfcp_ccw_priv_sch - check if subchannel is privileged
76 * @adapter: Adapter/Subchannel to check
77 */
78int zfcp_ccw_priv_sch(struct zfcp_adapter *adapter)
79{
80 return adapter->ccw_device->id.dev_model == ZFCP_MODEL_PRIV;
81}
82
83/**
84 * zfcp_ccw_probe - probe function of zfcp driver
85 * @cdev: pointer to belonging ccw device
86 *
87 * This function gets called by the common i/o layer for each FCP
88 * device found on the current system. This is only a stub to make cio
89 * work: To only allocate adapter resources for devices actually used,
90 * the allocation is deferred to the first call to ccw_set_online.
91 */

--- 236 unchanged lines hidden ---
75 * zfcp_ccw_probe - probe function of zfcp driver
76 * @cdev: pointer to belonging ccw device
77 *
78 * This function gets called by the common i/o layer for each FCP
79 * device found on the current system. This is only a stub to make cio
80 * work: To only allocate adapter resources for devices actually used,
81 * the allocation is deferred to the first call to ccw_set_online.
82 */

--- 236 unchanged lines hidden ---