summaryrefslogtreecommitdiff
path: root/sys/dev/ic/tc921x.h
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-05-31 03:06:40 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-05-31 03:06:40 +0000
commit05f31df8987fd2c50c38ef52709c52fa4439bf54 (patch)
tree9ee0fd1a9cd5e733910fee32a0e66d1abe19b0e0 /sys/dev/ic/tc921x.h
parentee729b690ed14d7f8526994db000ee411e8603f7 (diff)
mpi hardware uses an 8 bit field to describe the number of devices it has
on a port. since 256 wont fit into 8 bits they say 0 means 256. this diff does the appropriate interpretation. it also avoids a divide by zero when we figure the openings out by dividing the number of commands the controller can support by the number of devices it supports. panic found while testing the fc controller at home.
Diffstat (limited to 'sys/dev/ic/tc921x.h')
0 files changed, 0 insertions, 0 deletions