diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-08-14 14:43:37 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-08-14 14:43:37 +0000 |
commit | 8377bcb6bb7e4365da274fc70255b527f5706efe (patch) | |
tree | e93eecf8f5bcacce7af27088f44f4cee7bb1a02f /usr.bin | |
parent | 1b13bc453ffa2a129542e7b6cccf741c50f918ed (diff) |
firmware commands (as opposed to io commands) are sent to the firmware via
the IOC_WBUF area in bus_space, and replies to it are read from the
IOC_RBUF area. the freebsd and linux drivers define these areas to be 32
dwords in length, but it then goes and casts these spaces to a struct that
has a 4 byte word at the start with the length of the message in it,
followed by a 124 byte buffer which is filled with the actual message in
it.
rather than screwing around with an extra struct and casts, we can define
this header as a register of its own, and the buffer as a separate region
in bus_space.
this simplifies command submission and the retrieval of the replies (which
is yet to be written properly).
Diffstat (limited to 'usr.bin')
0 files changed, 0 insertions, 0 deletions