| |
- __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 and other attributes defined here:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'Gennum' objects>
- list of weak references to the object (if defined)
- device = '/dev/rawrabbit'
- rrlib = './rrlib.so'
|
class RR_Devsel(_ctypes.Structure) |
| |
- Method resolution order:
- RR_Devsel
- _ctypes.Structure
- _ctypes._CData
- __builtin__.object
Data and other attributes defined here:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'RR_Devsel' objects>
- list of weak references to the object (if defined)
- bus = <Field type=c_ushort, ofs=8, size=2>
- Structure/Union member
- devfn = <Field type=c_ushort, ofs=10, size=2>
- Structure/Union member
- device = <Field type=c_ushort, ofs=2, size=2>
- Structure/Union member
- subdevice = <Field type=c_ushort, ofs=6, size=2>
- Structure/Union member
- subvendor = <Field type=c_ushort, ofs=4, size=2>
- Structure/Union member
- vendor = <Field type=c_ushort, ofs=0, size=2>
- Structure/Union member
Methods inherited from _ctypes.Structure:
- __init__(...)
- x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Data and other attributes inherited from _ctypes.Structure:
- __new__ = <built-in method __new__ of _ctypes.StructType object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
Methods inherited from _ctypes._CData:
- __ctypes_from_outparam__(...)
- __hash__(...)
- x.__hash__() <==> hash(x)
|
class RR_Iocmd(_ctypes.Structure) |
| |
- Method resolution order:
- RR_Iocmd
- _ctypes.Structure
- _ctypes._CData
- __builtin__.object
Data and other attributes defined here:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'RR_Iocmd' objects>
- list of weak references to the object (if defined)
- address = <Field type=c_ulong, ofs=0, size=4>
- Structure/Union member
- data = <Field type=RR_U, ofs=8, size=8>
- Structure/Union member
- data16 = <Field type=c_ushort, ofs=8, size=2>
- Structure/Union member
- data32 = <Field type=c_ulong, ofs=8, size=4>
- Structure/Union member
- data64 = <Field type=c_ulonglong, ofs=8, size=8>
- Structure/Union member
- data8 = <Field type=c_ubyte, ofs=8, size=1>
- Structure/Union member
- datasize = <Field type=c_ulong, ofs=4, size=4>
- Structure/Union member
Methods inherited from _ctypes.Structure:
- __init__(...)
- x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Data and other attributes inherited from _ctypes.Structure:
- __new__ = <built-in method __new__ of _ctypes.StructType object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
Methods inherited from _ctypes._CData:
- __ctypes_from_outparam__(...)
- __hash__(...)
- x.__hash__() <==> hash(x)
|
class RR_U(_ctypes.Union) |
| |
- Method resolution order:
- RR_U
- _ctypes.Union
- _ctypes._CData
- __builtin__.object
Data and other attributes defined here:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'RR_U' objects>
- list of weak references to the object (if defined)
- data16 = <Field type=c_ushort, ofs=0, size=2>
- Structure/Union member
- data32 = <Field type=c_ulong, ofs=0, size=4>
- Structure/Union member
- data64 = <Field type=c_ulonglong, ofs=0, size=8>
- Structure/Union member
- data8 = <Field type=c_ubyte, ofs=0, size=1>
- Structure/Union member
Methods inherited from _ctypes.Union:
- __init__(...)
- x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Data and other attributes inherited from _ctypes.Union:
- __new__ = <built-in method __new__ of _ctypes.UnionType object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
Methods inherited from _ctypes._CData:
- __ctypes_from_outparam__(...)
- __hash__(...)
- x.__hash__() <==> hash(x)
| |