Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 1 | ============================= |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | S/390 driver model interfaces |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 3 | ============================= |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | |
| 5 | 1. CCW devices |
| 6 | -------------- |
| 7 | |
| 8 | All devices which can be addressed by means of ccws are called 'CCW devices' - |
| 9 | even if they aren't actually driven by ccws. |
| 10 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 11 | All ccw devices are accessed via a subchannel, this is reflected in the |
| 12 | structures under devices/:: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 14 | devices/ |
Cornelia Huck | 373c491 | 2005-11-07 00:59:03 -0800 | [diff] [blame] | 15 | - system/ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | - css0/ |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 17 | - 0.0.0000/0.0.0815/ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | - 0.0.0001/0.0.4711/ |
| 19 | - 0.0.0002/ |
Cornelia Huck | dc06010 | 2006-03-24 03:15:13 -0800 | [diff] [blame] | 20 | - 0.1.0000/0.1.1234/ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | ... |
Cornelia Huck | 7f09014 | 2006-12-08 15:56:02 +0100 | [diff] [blame] | 22 | - defunct/ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | |
Cornelia Huck | dc06010 | 2006-03-24 03:15:13 -0800 | [diff] [blame] | 24 | In this example, device 0815 is accessed via subchannel 0 in subchannel set 0, |
| 25 | device 4711 via subchannel 1 in subchannel set 0, and subchannel 2 is a non-I/O |
| 26 | subchannel. Device 1234 is accessed via subchannel 0 in subchannel set 1. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | |
Cornelia Huck | 7f09014 | 2006-12-08 15:56:02 +0100 | [diff] [blame] | 28 | The subchannel named 'defunct' does not represent any real subchannel on the |
Matt LaPlante | d919588 | 2008-07-25 19:45:33 -0700 | [diff] [blame] | 29 | system; it is a pseudo subchannel where disconnected ccw devices are moved to |
Cornelia Huck | 7f09014 | 2006-12-08 15:56:02 +0100 | [diff] [blame] | 30 | if they are displaced by another ccw device becoming operational on their |
| 31 | former subchannel. The ccw devices will be moved again to a proper subchannel |
| 32 | if they become operational again on that subchannel. |
| 33 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 34 | You should address a ccw device via its bus id (e.g. 0.0.4711); the device can |
| 35 | be found under bus/ccw/devices/. |
| 36 | |
| 37 | All ccw devices export some data via sysfs. |
| 38 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 39 | cutype: |
| 40 | The control unit type / model. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 41 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 42 | devtype: |
| 43 | The device type / model, if applicable. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 45 | availability: |
| 46 | Can be 'good' or 'boxed'; 'no path' or 'no device' for |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 47 | disconnected devices. |
| 48 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 49 | online: |
| 50 | An interface to set the device online and offline. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 51 | In the special case of the device being disconnected (see the |
Cornelia Huck | 373c491 | 2005-11-07 00:59:03 -0800 | [diff] [blame] | 52 | notify function under 1.2), piping 0 to online will forcibly delete |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 53 | the device. |
| 54 | |
| 55 | The device drivers can add entries to export per-device data and interfaces. |
| 56 | |
| 57 | There is also some data exported on a per-subchannel basis (see under |
| 58 | bus/css/devices/): |
| 59 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 60 | chpids: |
| 61 | Via which chpids the device is connected. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 62 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 63 | pimpampom: |
| 64 | The path installed, path available and path operational masks. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 65 | |
| 66 | There also might be additional data, for example for block devices. |
| 67 | |
| 68 | |
| 69 | 1.1 Bringing up a ccw device |
| 70 | ---------------------------- |
| 71 | |
| 72 | This is done in several steps. |
| 73 | |
| 74 | a. Each driver can provide one or more parameter interfaces where parameters can |
| 75 | be specified. These interfaces are also in the driver's responsibility. |
| 76 | b. After a. has been performed, if necessary, the device is finally brought up |
| 77 | via the 'online' interface. |
| 78 | |
| 79 | |
| 80 | 1.2 Writing a driver for ccw devices |
| 81 | ------------------------------------ |
| 82 | |
| 83 | The basic struct ccw_device and struct ccw_driver data structures can be found |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 84 | under include/asm/ccwdev.h:: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 85 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 86 | struct ccw_device { |
| 87 | spinlock_t *ccwlock; |
| 88 | struct ccw_device_private *private; |
| 89 | struct ccw_device_id id; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 90 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 91 | struct ccw_driver *drv; |
| 92 | struct device dev; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 93 | int online; |
| 94 | |
| 95 | void (*handler) (struct ccw_device *dev, unsigned long intparm, |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 96 | struct irb *irb); |
| 97 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 98 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 99 | struct ccw_driver { |
| 100 | struct module *owner; |
| 101 | struct ccw_device_id *ids; |
| 102 | int (*probe) (struct ccw_device *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 103 | int (*remove) (struct ccw_device *); |
| 104 | int (*set_online) (struct ccw_device *); |
| 105 | int (*set_offline) (struct ccw_device *); |
| 106 | int (*notify) (struct ccw_device *, int); |
| 107 | struct device_driver driver; |
| 108 | char *name; |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 109 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 110 | |
| 111 | The 'private' field contains data needed for internal i/o operation only, and |
| 112 | is not available to the device driver. |
| 113 | |
| 114 | Each driver should declare in a MODULE_DEVICE_TABLE into which CU types/models |
| 115 | and/or device types/models it is interested. This information can later be found |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 116 | in the struct ccw_device_id fields:: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 117 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 118 | struct ccw_device_id { |
| 119 | __u16 match_flags; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 120 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 121 | __u16 cu_type; |
| 122 | __u16 dev_type; |
| 123 | __u8 cu_model; |
| 124 | __u8 dev_model; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 125 | |
| 126 | unsigned long driver_info; |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 127 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 128 | |
| 129 | The functions in ccw_driver should be used in the following way: |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 130 | |
| 131 | probe: |
| 132 | This function is called by the device layer for each device the driver |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 133 | is interested in. The driver should only allocate private structures |
| 134 | to put in dev->driver_data and create attributes (if needed). Also, |
| 135 | the interrupt handler (see below) should be set here. |
| 136 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 137 | :: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 138 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 139 | int (*probe) (struct ccw_device *cdev); |
| 140 | |
| 141 | Parameters: |
| 142 | cdev |
| 143 | - the device to be probed. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 144 | |
| 145 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 146 | remove: |
| 147 | This function is called by the device layer upon removal of the driver, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 148 | the device or the module. The driver should perform cleanups here. |
| 149 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 150 | :: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 151 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 152 | int (*remove) (struct ccw_device *cdev); |
| 153 | |
| 154 | Parameters: |
| 155 | cdev |
| 156 | - the device to be removed. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 157 | |
| 158 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 159 | set_online: |
| 160 | This function is called by the common I/O layer when the device is |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 161 | activated via the 'online' attribute. The driver should finally |
| 162 | setup and activate the device here. |
| 163 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 164 | :: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 165 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 166 | int (*set_online) (struct ccw_device *); |
| 167 | |
| 168 | Parameters: |
| 169 | cdev |
| 170 | - the device to be activated. The common layer has |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 171 | verified that the device is not already online. |
| 172 | |
| 173 | |
| 174 | set_offline: This function is called by the common I/O layer when the device is |
| 175 | de-activated via the 'online' attribute. The driver should shut |
| 176 | down the device, but not de-allocate its private data. |
| 177 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 178 | :: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 179 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 180 | int (*set_offline) (struct ccw_device *); |
| 181 | |
| 182 | Parameters: |
| 183 | cdev |
| 184 | - the device to be deactivated. The common layer has |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 185 | verified that the device is online. |
| 186 | |
| 187 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 188 | notify: |
| 189 | This function is called by the common I/O layer for some state changes |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 190 | of the device. |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 191 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 192 | Signalled to the driver are: |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 193 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 194 | * In online state, device detached (CIO_GONE) or last path gone |
| 195 | (CIO_NO_PATH). The driver must return !0 to keep the device; for |
| 196 | return code 0, the device will be deleted as usual (also when no |
Matt LaPlante | d6bc8ac | 2006-10-03 22:54:15 +0200 | [diff] [blame] | 197 | notify function is registered). If the driver wants to keep the |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 198 | device, it is moved into disconnected state. |
| 199 | * In disconnected state, device operational again (CIO_OPER). The |
| 200 | common I/O layer performs some sanity checks on device number and |
| 201 | Device / CU to be reasonably sure if it is still the same device. |
| 202 | If not, the old device is removed and a new one registered. By the |
| 203 | return code of the notify function the device driver signals if it |
| 204 | wants the device back: !0 for keeping, 0 to make the device being |
| 205 | removed and re-registered. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 206 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 207 | :: |
| 208 | |
| 209 | int (*notify) (struct ccw_device *, int); |
| 210 | |
| 211 | Parameters: |
| 212 | cdev |
| 213 | - the device whose state changed. |
| 214 | |
| 215 | event |
| 216 | - the event that happened. This can be one of CIO_GONE, |
| 217 | CIO_NO_PATH or CIO_OPER. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 218 | |
| 219 | The handler field of the struct ccw_device is meant to be set to the interrupt |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 220 | handler for the device. In order to accommodate drivers which use several |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 221 | distinct handlers (e.g. multi subchannel devices), this is a member of ccw_device |
| 222 | instead of ccw_driver. |
| 223 | The handler is registered with the common layer during set_online() processing |
| 224 | before the driver is called, and is deregistered during set_offline() after the |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 225 | driver has been called. Also, after registering / before deregistering, path |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 226 | grouping resp. disbanding of the path group (if applicable) are performed. |
| 227 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 228 | :: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 229 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 230 | void (*handler) (struct ccw_device *dev, unsigned long intparm, struct irb *irb); |
| 231 | |
| 232 | Parameters: dev - the device the handler is called for |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 233 | intparm - the intparm which allows the device driver to identify |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 234 | the i/o the interrupt is associated with, or to recognize |
| 235 | the interrupt as unsolicited. |
| 236 | irb - interruption response block which contains the accumulated |
| 237 | status. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 238 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 239 | The device driver is called from the common ccw_device layer and can retrieve |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 240 | information about the interrupt from the irb parameter. |
| 241 | |
| 242 | |
| 243 | 1.3 ccwgroup devices |
| 244 | -------------------- |
| 245 | |
| 246 | The ccwgroup mechanism is designed to handle devices consisting of multiple ccw |
| 247 | devices, like lcs or ctc. |
| 248 | |
| 249 | The ccw driver provides a 'group' attribute. Piping bus ids of ccw devices to |
| 250 | this attributes creates a ccwgroup device consisting of these ccw devices (if |
| 251 | possible). This ccwgroup device can be set online or offline just like a normal |
| 252 | ccw device. |
| 253 | |
| 254 | Each ccwgroup device also provides an 'ungroup' attribute to destroy the device |
| 255 | again (only when offline). This is a generic ccwgroup mechanism (the driver does |
| 256 | not need to implement anything beyond normal removal routines). |
| 257 | |
Cornelia Huck | dc06010 | 2006-03-24 03:15:13 -0800 | [diff] [blame] | 258 | A ccw device which is a member of a ccwgroup device carries a pointer to the |
| 259 | ccwgroup device in the driver_data of its device struct. This field must not be |
| 260 | touched by the driver - it should use the ccwgroup device's driver_data for its |
| 261 | private data. |
| 262 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 263 | To implement a ccwgroup driver, please refer to include/asm/ccwgroup.h. Keep in |
Ursula Braun | 6f5d09a | 2010-02-26 22:37:23 +0100 | [diff] [blame] | 264 | mind that most drivers will need to implement both a ccwgroup and a ccw |
| 265 | driver. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 266 | |
| 267 | |
| 268 | 2. Channel paths |
| 269 | ----------------- |
| 270 | |
| 271 | Channel paths show up, like subchannels, under the channel subsystem root (css0) |
| 272 | and are called 'chp0.<chpid>'. They have no driver and do not belong to any bus. |
| 273 | Please note, that unlike /proc/chpids in 2.4, the channel path objects reflect |
| 274 | only the logical state and not the physical state, since we cannot track the |
| 275 | latter consistently due to lacking machine support (we don't need to be aware |
Cornelia Huck | 373c491 | 2005-11-07 00:59:03 -0800 | [diff] [blame] | 276 | of it anyway). |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 277 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 278 | status |
| 279 | - Can be 'online' or 'offline'. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 280 | Piping 'on' or 'off' sets the chpid logically online/offline. |
| 281 | Piping 'on' to an online chpid triggers path reprobing for all devices |
| 282 | the chpid connects to. This can be used to force the kernel to re-use |
| 283 | a channel path the user knows to be online, but the machine hasn't |
| 284 | created a machine check for. |
| 285 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 286 | type |
| 287 | - The physical type of the channel path. |
Cornelia Huck | dc06010 | 2006-03-24 03:15:13 -0800 | [diff] [blame] | 288 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 289 | shared |
| 290 | - Whether the channel path is shared. |
Cornelia Huck | 9b10fe5 | 2006-10-18 18:30:55 +0200 | [diff] [blame] | 291 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 292 | cmg |
| 293 | - The channel measurement group. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 294 | |
| 295 | 3. System devices |
| 296 | ----------------- |
| 297 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 298 | 3.1 xpram |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 299 | --------- |
| 300 | |
Cornelia Huck | 373c491 | 2005-11-07 00:59:03 -0800 | [diff] [blame] | 301 | xpram shows up under devices/system/ as 'xpram'. |
| 302 | |
| 303 | 3.2 cpus |
| 304 | -------- |
| 305 | |
| 306 | For each cpu, a directory is created under devices/system/cpu/. Each cpu has an |
| 307 | attribute 'online' which can be 0 or 1. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 308 | |
| 309 | |
| 310 | 4. Other devices |
| 311 | ---------------- |
| 312 | |
| 313 | 4.1 Netiucv |
| 314 | ----------- |
| 315 | |
| 316 | The netiucv driver creates an attribute 'connection' under |
Matt LaPlante | 3f6dee9 | 2006-10-03 22:45:33 +0200 | [diff] [blame] | 317 | bus/iucv/drivers/netiucv. Piping to this attribute creates a new netiucv |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 318 | connection to the specified host. |
| 319 | |
| 320 | Netiucv connections show up under devices/iucv/ as "netiucv<ifnum>". The interface |
| 321 | number is assigned sequentially to the connections defined via the 'connection' |
| 322 | attribute. |
| 323 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 324 | user |
| 325 | - shows the connection partner. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 326 | |
Mauro Carvalho Chehab | 8b4a503 | 2019-06-08 23:27:16 -0300 | [diff] [blame] | 327 | buffer |
| 328 | - maximum buffer size. Pipe to it to change buffer size. |