Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 1 | VME Device Drivers |
| 2 | ================== |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 3 | |
| 4 | Driver registration |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 5 | ------------------- |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 6 | |
| 7 | As with other subsystems within the Linux kernel, VME device drivers register |
| 8 | with the VME subsystem, typically called from the devices init routine. This is |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 9 | achieved via a call to :c:func:`vme_register_driver`. |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 10 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 11 | A pointer to a structure of type :c:type:`struct vme_driver <vme_driver>` must |
| 12 | be provided to the registration function. Along with the maximum number of |
| 13 | devices your driver is able to support. |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 14 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 15 | At the minimum, the '.name', '.match' and '.probe' elements of |
| 16 | :c:type:`struct vme_driver <vme_driver>` should be correctly set. The '.name' |
| 17 | element is a pointer to a string holding the device driver's name. |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 18 | |
Martyn Welch | 76deefa | 2016-06-05 21:35:45 +0100 | [diff] [blame] | 19 | The '.match' function allows control over which VME devices should be registered |
| 20 | with the driver. The match function should return 1 if a device should be |
Manohar Vanga | 5d6abf3 | 2011-09-26 11:27:16 +0200 | [diff] [blame] | 21 | probed and 0 otherwise. This example match function (from vme_user.c) limits |
| 22 | the number of devices probed to one: |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 23 | |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 24 | .. code-block:: c |
| 25 | |
Manohar Vanga | 5d6abf3 | 2011-09-26 11:27:16 +0200 | [diff] [blame] | 26 | #define USER_BUS_MAX 1 |
| 27 | ... |
| 28 | static int vme_user_match(struct vme_dev *vdev) |
| 29 | { |
| 30 | if (vdev->id.num >= USER_BUS_MAX) |
| 31 | return 0; |
| 32 | return 1; |
| 33 | } |
Manohar Vanga | 8f966dc | 2011-09-26 11:27:15 +0200 | [diff] [blame] | 34 | |
Manohar Vanga | 5d6abf3 | 2011-09-26 11:27:16 +0200 | [diff] [blame] | 35 | The '.probe' element should contain a pointer to the probe routine. The |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 36 | probe routine is passed a :c:type:`struct vme_dev <vme_dev>` pointer as an |
| 37 | argument. |
Manohar Vanga | 8f966dc | 2011-09-26 11:27:15 +0200 | [diff] [blame] | 38 | |
Manohar Vanga | a916a39 | 2011-09-26 11:27:17 +0200 | [diff] [blame] | 39 | Here, the 'num' field refers to the sequential device ID for this specific |
| 40 | driver. The bridge number (or bus number) can be accessed using |
| 41 | dev->bridge->num. |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 42 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 43 | A function is also provided to unregister the driver from the VME core called |
| 44 | :c:func:`vme_unregister_driver` and should usually be called from the device |
| 45 | driver's exit routine. |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 46 | |
| 47 | |
| 48 | Resource management |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 49 | ------------------- |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 50 | |
Manohar Vanga | a916a39 | 2011-09-26 11:27:17 +0200 | [diff] [blame] | 51 | Once a driver has registered with the VME core the provided match routine will |
| 52 | be called the number of times specified during the registration. If a match |
| 53 | succeeds, a non-zero value should be returned. A zero return value indicates |
| 54 | failure. For all successful matches, the probe routine of the corresponding |
| 55 | driver is called. The probe routine is passed a pointer to the devices |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 56 | device structure. This pointer should be saved, it will be required for |
| 57 | requesting VME resources. |
| 58 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 59 | The driver can request ownership of one or more master windows |
| 60 | (:c:func:`vme_master_request`), slave windows (:c:func:`vme_slave_request`) |
| 61 | and/or dma channels (:c:func:`vme_dma_request`). Rather than allowing the device |
| 62 | driver to request a specific window or DMA channel (which may be used by a |
| 63 | different driver) the API allows a resource to be assigned based on the required |
| 64 | attributes of the driver in question. For slave windows these attributes are |
| 65 | split into the VME address spaces that need to be accessed in 'aspace' and VME |
| 66 | bus cycle types required in 'cycle'. Master windows add a further set of |
| 67 | attributes in 'width' specifying the required data transfer widths. These |
| 68 | attributes are defined as bitmasks and as such any combination of the |
| 69 | attributes can be requested for a single window, the core will assign a window |
| 70 | that meets the requirements, returning a pointer of type vme_resource that |
| 71 | should be used to identify the allocated resource when it is used. For DMA |
| 72 | controllers, the request function requires the potential direction of any |
| 73 | transfers to be provided in the route attributes. This is typically VME-to-MEM |
| 74 | and/or MEM-to-VME, though some hardware can support VME-to-VME and MEM-to-MEM |
| 75 | transfers as well as test pattern generation. If an unallocated window fitting |
| 76 | the requirements can not be found a NULL pointer will be returned. |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 77 | |
| 78 | Functions are also provided to free window allocations once they are no longer |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 79 | required. These functions (:c:func:`vme_master_free`, :c:func:`vme_slave_free` |
| 80 | and :c:func:`vme_dma_free`) should be passed the pointer to the resource |
| 81 | provided during resource allocation. |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 82 | |
| 83 | |
| 84 | Master windows |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 85 | -------------- |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 86 | |
| 87 | Master windows provide access from the local processor[s] out onto the VME bus. |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 88 | The number of windows available and the available access modes is dependent on |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 89 | the underlying chipset. A window must be configured before it can be used. |
| 90 | |
| 91 | |
| 92 | Master window configuration |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 93 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 94 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 95 | Once a master window has been assigned :c:func:`vme_master_set` can be used to |
| 96 | configure it and :c:func:`vme_master_get` to retrieve the current settings. The |
| 97 | address spaces, transfer widths and cycle types are the same as described |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 98 | under resource management, however some of the options are mutually exclusive. |
| 99 | For example, only one address space may be specified. |
| 100 | |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 101 | |
| 102 | Master window access |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 103 | ~~~~~~~~~~~~~~~~~~~~ |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 104 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 105 | The function :c:func:`vme_master_read` can be used to read from and |
| 106 | :c:func:`vme_master_write` used to write to configured master windows. |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 107 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 108 | In addition to simple reads and writes, :c:func:`vme_master_rmw` is provided to |
| 109 | do a read-modify-write transaction. Parts of a VME window can also be mapped |
| 110 | into user space memory using :c:func:`vme_master_mmap`. |
Dmitry Kalinkin | c5ab1f7 | 2015-05-28 15:06:58 +0300 | [diff] [blame] | 111 | |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 112 | |
| 113 | Slave windows |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 114 | ------------- |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 115 | |
| 116 | Slave windows provide devices on the VME bus access into mapped portions of the |
| 117 | local memory. The number of windows available and the access modes that can be |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 118 | used is dependent on the underlying chipset. A window must be configured before |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 119 | it can be used. |
| 120 | |
| 121 | |
| 122 | Slave window configuration |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 123 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 124 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 125 | Once a slave window has been assigned :c:func:`vme_slave_set` can be used to |
| 126 | configure it and :c:func:`vme_slave_get` to retrieve the current settings. |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 127 | |
| 128 | The address spaces, transfer widths and cycle types are the same as described |
| 129 | under resource management, however some of the options are mutually exclusive. |
| 130 | For example, only one address space may be specified. |
| 131 | |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 132 | |
| 133 | Slave window buffer allocation |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 134 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 135 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 136 | Functions are provided to allow the user to allocate |
| 137 | (:c:func:`vme_alloc_consistent`) and free (:c:func:`vme_free_consistent`) |
| 138 | contiguous buffers which will be accessible by the VME bridge. These functions |
| 139 | do not have to be used, other methods can be used to allocate a buffer, though |
| 140 | care must be taken to ensure that they are contiguous and accessible by the VME |
| 141 | bridge. |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 142 | |
| 143 | |
| 144 | Slave window access |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 145 | ~~~~~~~~~~~~~~~~~~~ |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 146 | |
| 147 | Slave windows map local memory onto the VME bus, the standard methods for |
| 148 | accessing memory should be used. |
| 149 | |
| 150 | |
| 151 | DMA channels |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 152 | ------------ |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 153 | |
| 154 | The VME DMA transfer provides the ability to run link-list DMA transfers. The |
| 155 | API introduces the concept of DMA lists. Each DMA list is a link-list which can |
| 156 | be passed to a DMA controller. Multiple lists can be created, extended, |
| 157 | executed, reused and destroyed. |
| 158 | |
| 159 | |
| 160 | List Management |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 161 | ~~~~~~~~~~~~~~~ |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 162 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 163 | The function :c:func:`vme_new_dma_list` is provided to create and |
| 164 | :c:func:`vme_dma_list_free` to destroy DMA lists. Execution of a list will not |
| 165 | automatically destroy the list, thus enabling a list to be reused for repetitive |
| 166 | tasks. |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 167 | |
| 168 | |
| 169 | List Population |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 170 | ~~~~~~~~~~~~~~~ |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 171 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 172 | An item can be added to a list using :c:func:`vme_dma_list_add` (the source and |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 173 | destination attributes need to be created before calling this function, this is |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 174 | covered under "Transfer Attributes"). |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 175 | |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 176 | .. note:: |
| 177 | |
| 178 | The detailed attributes of the transfers source and destination |
Martyn Welch | 4f723df | 2010-02-18 15:12:58 +0000 | [diff] [blame] | 179 | are not checked until an entry is added to a DMA list, the request |
| 180 | for a DMA channel purely checks the directions in which the |
| 181 | controller is expected to transfer data. As a result it is |
| 182 | possible for this call to return an error, for example if the |
| 183 | source or destination is in an unsupported VME address space. |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 184 | |
| 185 | Transfer Attributes |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 186 | ~~~~~~~~~~~~~~~~~~~ |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 187 | |
| 188 | The attributes for the source and destination are handled separately from adding |
| 189 | an item to a list. This is due to the diverse attributes required for each type |
| 190 | of source and destination. There are functions to create attributes for PCI, VME |
| 191 | and pattern sources and destinations (where appropriate): |
| 192 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 193 | - PCI source or destination: :c:func:`vme_dma_pci_attribute` |
| 194 | - VME source or destination: :c:func:`vme_dma_vme_attribute` |
| 195 | - Pattern source: :c:func:`vme_dma_pattern_attribute` |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 196 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 197 | The function :c:func:`vme_dma_free_attribute` should be used to free an |
| 198 | attribute. |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 199 | |
| 200 | |
| 201 | List Execution |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 202 | ~~~~~~~~~~~~~~ |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 203 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 204 | The function :c:func:`vme_dma_list_exec` queues a list for execution and will |
| 205 | return once the list has been executed. |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 206 | |
| 207 | |
| 208 | Interrupts |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 209 | ---------- |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 210 | |
| 211 | The VME API provides functions to attach and detach callbacks to specific VME |
| 212 | level and status ID combinations and for the generation of VME interrupts with |
| 213 | specific VME level and status IDs. |
| 214 | |
| 215 | |
| 216 | Attaching Interrupt Handlers |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 217 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 218 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 219 | The function :c:func:`vme_irq_request` can be used to attach and |
| 220 | :c:func:`vme_irq_free` to free a specific VME level and status ID combination. |
| 221 | Any given combination can only be assigned a single callback function. A void |
| 222 | pointer parameter is provided, the value of which is passed to the callback |
| 223 | function, the use of this pointer is user undefined. The callback parameters are |
| 224 | as follows. Care must be taken in writing a callback function, callback |
| 225 | functions run in interrupt context: |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 226 | |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 227 | .. code-block:: c |
| 228 | |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 229 | void callback(int level, int statid, void *priv); |
| 230 | |
| 231 | |
| 232 | Interrupt Generation |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 233 | ~~~~~~~~~~~~~~~~~~~~ |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 234 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 235 | The function :c:func:`vme_irq_generate` can be used to generate a VME interrupt |
| 236 | at a given VME level and VME status ID. |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 237 | |
| 238 | |
| 239 | Location monitors |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 240 | ----------------- |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 241 | |
| 242 | The VME API provides the following functionality to configure the location |
| 243 | monitor. |
| 244 | |
| 245 | |
| 246 | Location Monitor Management |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 247 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 248 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 249 | The function :c:func:`vme_lm_request` is provided to request the use of a block |
| 250 | of location monitors and :c:func:`vme_lm_free` to free them after they are no |
| 251 | longer required. Each block may provide a number of location monitors, |
| 252 | monitoring adjacent locations. The function :c:func:`vme_lm_count` can be used |
| 253 | to determine how many locations are provided. |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 254 | |
| 255 | |
| 256 | Location Monitor Configuration |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 257 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 258 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 259 | Once a bank of location monitors has been allocated, the function |
| 260 | :c:func:`vme_lm_set` is provided to configure the location and mode of the |
| 261 | location monitor. The function :c:func:`vme_lm_get` can be used to retrieve |
| 262 | existing settings. |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 263 | |
| 264 | |
| 265 | Location Monitor Use |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 266 | ~~~~~~~~~~~~~~~~~~~~ |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 267 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 268 | The function :c:func:`vme_lm_attach` enables a callback to be attached and |
| 269 | :c:func:`vme_lm_detach` allows on to be detached from each location monitor |
| 270 | location. Each location monitor can monitor a number of adjacent locations. The |
| 271 | callback function is declared as follows. |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 272 | |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 273 | .. code-block:: c |
| 274 | |
Aaron Sierra | fa54b32 | 2016-04-29 16:41:02 -0500 | [diff] [blame] | 275 | void callback(void *data); |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 276 | |
| 277 | |
| 278 | Slot Detection |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 279 | -------------- |
Martyn Welch | bf39f9a | 2009-08-28 11:28:56 +0100 | [diff] [blame] | 280 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 281 | The function :c:func:`vme_slot_num` returns the slot ID of the provided bridge. |
Martyn Welch | 978f47d | 2013-11-08 11:58:34 +0000 | [diff] [blame] | 282 | |
| 283 | |
| 284 | Bus Detection |
Martyn Welch | 75a163c | 2016-10-21 22:15:27 +0100 | [diff] [blame] | 285 | ------------- |
Martyn Welch | 978f47d | 2013-11-08 11:58:34 +0000 | [diff] [blame] | 286 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 287 | The function :c:func:`vme_bus_num` returns the bus ID of the provided bridge. |
Martyn Welch | 978f47d | 2013-11-08 11:58:34 +0000 | [diff] [blame] | 288 | |
Martyn Welch | 978f47d | 2013-11-08 11:58:34 +0000 | [diff] [blame] | 289 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 290 | VME API |
| 291 | ------- |
Martyn Welch | 978f47d | 2013-11-08 11:58:34 +0000 | [diff] [blame] | 292 | |
Martyn Welch | 48a5e6b | 2017-03-04 00:34:30 +0000 | [diff] [blame] | 293 | .. kernel-doc:: include/linux/vme.h |
| 294 | :internal: |
| 295 | |
| 296 | .. kernel-doc:: drivers/vme/vme.c |
| 297 | :export: |