| |
- __builtin__.object
-
- Gennum
- _ctypes.Array(_ctypes._CData)
-
- c_long_Array_256
- _ctypes.Structure(_ctypes._CData)
-
- RR_Devsel
- RR_Iocmd
- _ctypes.Union(_ctypes._CData)
-
- RR_U
class Gennum(__builtin__.object) |
| |
Methods defined here:
- __init__(self)
- get a file descriptor for the Gennum device
- bind(self, device)
- bind the rawrabbit driver to a device
The device is specified with a syntax described in parse_addr
- getdmasize(self)
- return the size of the allocated DMA buffer (in bytes)
- getplist(self)
- get a list of pages for DMA access
The addresses returned, shifted by 12 bits, give the physical
addresses of the allocated pages
- info(self)
- get a string describing the interface the driver is bound to
The syntax of the string is
vendor:device/dubvendor:subdevice@bus:devfn
- iread(self, bar, offset, width)
- do a read by means of the ioctl interface
bar = 0, 2, 4 (or c for DMA buffer access
offset = address within bar
width = data size (1, 2, 4 or 8 bytes)
- irqena(self)
- enable the interrupt line
- irqwait(self)
- wait for an interrupt
- iwrite(self, bar, offset, width, datum)
- do a write by means of the ioctl interface
bar = 0, 2, 4 (or c for DMA buffer access
offset = address within bar
width = data size (1, 2, 4 or 8 bytes)
datum = value to be written
- parse_addr(self, addr)
- take a string of the form
vendor:device[/subvendor:subdevice][@bus:devfn]
and return a dictionary object with the corresponding values,
initialized to RR_DEVSEL_UNUSED when absent
- read(self, bar, offset, width)
- do a read by means of lseek+read
bar = 0, 2, 4 (or c for DMA buffer access
offset = address within bar
width = data size (1, 2, 4 or 8 bytes)
- write(self, bar, offset, width, datum)
- do a write by means of lseek+write
bar = 0, 2, 4 (or c for DMA buffer access
offset = address within bar
width = data size (1, 2, 4 or 8 bytes)
datum = value to be written
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes defined here:
- device = '/dev/rawrabbit'
- rrlib = './rrlib.so'
|
|