diff options
author | 2012-05-17 19:46:52 +0000 | |
---|---|---|
committer | 2012-05-17 19:46:52 +0000 | |
commit | b1650df9c5d1d61bfbe8a6d7b2ee202d819a73a0 (patch) | |
tree | bef2275c644c97f7075c7c8e01a0f1adddb3fc5a /usr.bin/diff/diffreg.c | |
parent | Better probes for sq and wdsc in gio-masqueraded-as-hpc expansion boards. (diff) | |
download | wireguard-openbsd-b1650df9c5d1d61bfbe8a6d7b2ee202d819a73a0.tar.xz wireguard-openbsd-b1650df9c5d1d61bfbe8a6d7b2ee202d819a73a0.zip |
Yet another rework of the crucial gio_id() function responsible for correctly
recognizing a GIO device or an id-less frame buffer in a GIO slot.
Turns out that GIO32 devices (at least those with a 32-bit ID register, but
likely all of them) do NOT like accesses to the minimal GIO register area
NOT done on 32-bit boundaries. While frame buffers won't mind, especially
if their slots are pipelined.
This makes it a lot easier to tell them apart.
While there, split gio_intr_establish() into gio_intr_map(), which will return
a logical interrupt number out of a GIO slot number, and gio_intr_establish(),
which will now expect a logical interrupt number, instead of a logical slot
number. These two functions are still unused, but upcoming changes depend on
this work. (Yes, I'm too lazy to make two commits for this tonite)
Diffstat (limited to 'usr.bin/diff/diffreg.c')
0 files changed, 0 insertions, 0 deletions