GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.kernel.org — Writing Device Drivers for Zorro Devices — The Linux Kernel documentation Writing Device Drivers for Zorro Devices¶
Introduction¶The Zorro bus is the bus used in the Amiga family of computers. Thanks to AutoConfig(tm), it’s 100% Plug-and-Play. There are two types of Zorro buses, Zorro II and Zorro III:
Probing for Zorro Devices¶Zorro devices are found by calling struct zorro_dev *z = NULL;
while ((z = zorro_find_device(ZORRO_PROD_xxx, z))) {
if (!zorro_request_region(z->resource.start+MY_START, MY_SIZE,
"My explanation"))
...
}
struct zorro_dev *z = NULL;
while ((z = zorro_find_device(ZORRO_WILDCARD, z))) {
if (z->id != ZORRO_PROD_xxx1 && z->id != ZORRO_PROD_xxx2 && ...)
continue;
if (!zorro_request_region(z->resource.start+MY_START, MY_SIZE,
"My explanation"))
...
}
Zorro Resources¶Before you can access a Zorro device’s registers, you have to make sure it’s not yet in use. This is done using the I/O memory space resource management functions: request_mem_region() release_mem_region() Shortcuts to claim the whole device’s address space are provided as well: zorro_request_device zorro_release_device Accessing the Zorro Address Space¶The address regions in the Zorro device resources are Zorro bus address regions. Due to the identity bus-physical address mapping on the Zorro bus, they are CPU physical addresses as well. The treatment of these regions depends on the type of Zorro space:
References¶
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |