opnsense-src/sys/dev/isp
Matt Jacob 6e5c5328c4 Eliminate the use of the getenv_int stuff we'd been using (with a bitmap
for selecting unit). Instead, use the resource hints mechanism.

One unfortunate situation here is that there is no resource_quad_value
function- which is what I needed for WWN boot time replacement. Worse-
you can't store the hint as just plain

hint.isp.0.nodewwn="0x50000000aaaa0001"

because this gets interpreted as an int- incorrectly because it can't
be converted to an int. I can't even get this as a string. To work
around this particular case for nodewwn && portwwn setting, this
rather grotesque form will be used:

hint.isp.0.nodewwn="w50000000aaaa0001"
hint.isp.0.portwwn="w50000000aaaa0002"

At the same time, if we have no hinted WWN, set the default WWN (which, btw,
gets overridden if the card has valid NVRAM, which is usual) to
0x400000007F000009ull (which translates to NAA == IPv4, 127.0.0.9).

Eliminate more printf's and replace them either with device_printf or
isp_prt calls.
2001-03-01 02:21:36 +00:00
..
isp.c Fix a longstanding bug- we had the sense of what bit 14 2001-02-23 05:35:50 +00:00
isp_freebsd.c Finally eliminate as many of the printf calls as possible (still leaving 2001-03-01 02:14:54 +00:00
isp_freebsd.h Go to a default port and default node wwn model. Eliminate isp_name 2001-03-01 02:15:58 +00:00
isp_inline.h Add isp_fc_runstate function- this function's purpose is to, in stages, 2001-02-11 03:52:04 +00:00
isp_pci.c Eliminate the use of the getenv_int stuff we'd been using (with a bitmap 2001-03-01 02:21:36 +00:00
isp_target.c Fix typo: wierd -> weird. 2001-02-06 09:25:10 +00:00
isp_target.h Fix at2_entry_t to reflect what the firmware actually writes (instead 2001-02-27 00:14:39 +00:00
isp_tpublic.h Some minor tweaklets. 2000-04-21 02:05:54 +00:00
ispmbox.h Fix a longstanding bug- we had the sense of what bit 14 2001-02-23 05:35:50 +00:00
ispreg.h Put in offset definitions for FPM and FBM registers, plus just enough 2001-01-15 18:37:14 +00:00
ispvar.h Fix a longstanding bug- we had the sense of what bit 14 2001-02-23 05:35:50 +00:00