summaryrefslogtreecommitdiffstats
path: root/tools/bus_space/Python/lang.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename busdma_sync() to busdma_sync_range() and rename themarcel2015-08-021-4/+21
| | | | | base and size parameters to ofs and len (resp). Add a new busdma_sync() that makes the entire MD coherent.
* Change the dev argument from a full path to just the devicemarcel2015-07-261-3/+3
| | | | | | | | | | | | identification (e.g. isa:0x3f0 or pci0:2:1:0). In libbus, the device is turned into a path name. For bus_space_map(), the resource is now specified in a second argument. Before: bus.map('/dev/proto/pci0:2:1:0/pcicfg') busdma.tag_create('/dev/proto/pci0:2:1:0/busdma', ...) Now: bus.map('pci0:2:1:0', 'pcicfg') busdma.tag_create('pci0:2:1:0', ...)
* Implement busdma_md_unload() and busdma_sync().marcel2015-07-031-11/+59
| | | | | | | | While here: 1. have the Python bindings contain constants for the space identifiers and the sync operation. 2. change the segment iterators to return None when done, not ENXIO.
* Add busdma_md_create, busdma_md_destroy and busdma_md_load.marcel2015-07-031-0/+57
|
* Add accessor functions for iterating over segments. A segmentmarcel2015-06-111-1/+72
| | | | | can be in bus address space, physical memory space or virtual memory space.
* Rename bus_space to bus (i.e. drop _space). This makes themarcel2015-06-101-4/+4
| | | | | API match the convenience macros in <sys/bus.h>. Bus space can now reference both bus and busdma.
* Add busdma_mem_alloc & busdma_mem_free.marcel2015-06-081-10/+50
|
* Add DMA tag management to the C library and Python binding.marcel2015-06-061-0/+61
|
* Add a C libary and a Python module that implements an API similarmarcel2014-04-281-0/+200
to bus_space(9) and that uses the proto(4) driver for talking to hardware. If the I/O resource is a memory mapped I/O resource, then mmap(2) will be attempted to avoid read(2)/write(2) overhead. Sponsored by: Juniper Networks, Inc.
OpenPOWER on IntegriCloud