Commit Graph

15872 Commits

Author SHA1 Message Date
thorpej
abc7f80ca5 - Map I/O space on chips that support it. While it is not used for
normal operation, it is required to implement a bug work-around on
  some chips.
- When issuing a reset on the i82544, i82540, i82545, i82546,
  and i82541, use I/O space, if available, to work around a problem
  with the memory write cycle (problem only occurs when issuing
  a reset).
2003-10-21 05:45:11 +00:00
thorpej
f44ddf324f Fix a typo. 2003-10-21 05:07:10 +00:00
thorpej
0143773bbc Add some additional register definitions needed for newer chips:
- Control register shadow
- SPI EEPROM stuff
2003-10-21 04:39:32 +00:00
thorpej
2cadb9ce85 Record characteristics of the bus connection at attach time. 2003-10-21 04:35:01 +00:00
fvdl
ce7e811d1d And the wise man said: An u_int32_t is not a pointer, my young apprentice,
so thou shalt not compare it to NULL.
2003-10-21 03:24:25 +00:00
fvdl
c9aca9f010 Don't pass NULL as an integer value. 2003-10-21 03:22:25 +00:00
fvdl
5e8b006a17 Add missing field initializer. 2003-10-21 01:12:42 +00:00
yamt
65995a9aa2 don't swap powerhook and shutdownhook. 2003-10-21 01:00:57 +00:00
fvdl
5f1e7fa5f8 Correct NULL abuse. 2003-10-21 00:57:47 +00:00
uwe
62c7814709 Add missing NetBSD/hpcsh devices. 2003-10-21 00:33:12 +00:00
fvdl
86c363960e Correct NULL abuse. 2003-10-21 00:25:59 +00:00
fvdl
2a11316bc0 Correct NULL abuse. 2003-10-21 00:22:04 +00:00
thorpej
e2d086d69d - Do better error checking on EEPROM access.
- Let the EEPROM wire-protocol handler perform the loop.
2003-10-20 22:52:19 +00:00
thorpej
12c5273afa Move all the code that handles the MicroWire EEPROM protocol into
a separate function.
2003-10-20 16:28:23 +00:00
briggs
1ce6ced119 As suggested by Jason Thorpe, rename m41t to m41trtc. 2003-10-20 16:24:10 +00:00
thorpej
fedb07bc8d Fix a typo in the "failed to acquire eeprom" case. 2003-10-20 15:34:25 +00:00
thorpej
0ebc93fe43 Move the code that reads a series of bits from the EEPROM into a
separate function.
2003-10-20 15:33:48 +00:00
thorpej
17aaa92402 Make all of the functions in this file static. 2003-10-20 06:00:26 +00:00
thorpej
10926a6056 Factor out the code that sends bits to the EEPROM into a separate function. 2003-10-20 05:56:17 +00:00
thorpej
f5fc41219d Move the code that handle the EEPROM handshake into separate functions. 2003-10-20 05:40:03 +00:00
dyoung
ab4a574ce1 Don't take the 802.11 header off of a frame until after we've given
it to the driver's BPF tap.
2003-10-19 22:00:54 +00:00
bouyer
0ca33bf011 Better late than never, add the chip-specific PCI ide controllers. 2003-10-19 15:41:23 +00:00
ragge
9cbcd57e32 Add lcspx. 2003-10-19 15:04:08 +00:00
tsutsui
8d36037f37 Utilize bus_dma(9) functions more efficiently.
pcscp(4) is the first device driver I wrote about five years ago,
but I still have to learn about bus_dma(9) implementation...
2003-10-19 10:25:42 +00:00
scw
175f717bf5 Be more careful about validating the user-specified geometry, otherwise
it's too easy to specify a geometry which will cause a divide by zero
elsewhere in the disklabel code.
2003-10-19 07:41:19 +00:00
matt
3642aa4ccc Add PCN_NO_PROM flag. (read the macaddr from the chip assuming the "BIOS"
has properly written it).  From John Gordon.
2003-10-19 03:32:25 +00:00
simonb
9833c17169 Remove some unreachable code with the comment "To shut up compiler"
that neither gcc 2.95.3 or 3.3.1 complains about if that bit of code
is missing...
2003-10-19 01:49:03 +00:00
simonb
59fb31d7cc Remove unreachable break after return and goto statements. 2003-10-19 01:44:48 +00:00
cdi
492c11116f Revert previous change as it breaks the build on a number of ports. 2003-10-18 21:26:22 +00:00
matt
3109d133ea Regen. 2003-10-18 18:53:09 +00:00
matt
0d7c37b872 Add Philips SAA7146AH 2003-10-18 18:51:29 +00:00
enami
e7533e9811 Don't limit xfer size to SBP2_MAXPHYS. Its not transfer size limit
but just a threshold how to describe transfer.
2003-10-18 12:47:28 +00:00
enami
145fb5989c Factor out common code. 2003-10-18 12:40:09 +00:00
enami
3072a86cf0 Whitespace nits. 2003-10-18 12:31:37 +00:00
ragge
895d584f93 Add cnmagic support to the DZ driver. Pmax should also use cnmagic instead
of it's homwgrown tests.
2003-10-18 12:10:53 +00:00
manu
15af059557 On some machines, the keyboard is not enabled after a reset, rendering the
console useless. Fix that by explicitely enabling the keyboard when it is
attached.
2003-10-18 09:19:04 +00:00
tsutsui
fd5c63296f Fix some attach messages for new ahc(4). 2003-10-18 07:44:51 +00:00
wiz
810d184699 Fix typo in comment. 2003-10-18 07:41:26 +00:00
simonb
78c2103e34 Remove assigned-to but otherwise unused variables.
Remove unreachable break after return statements.
2003-10-18 04:50:35 +00:00
lukem
6ba1832265 regen for more ServerWorks devices 2003-10-18 01:33:16 +00:00
lukem
f1b836d0c9 Remove http://members.hyperlink.net.au/~chart/pci.htm link; it doesn't
exist anymore.

Add some more ServerWorks devices
2003-10-18 01:32:30 +00:00
thorpej
b0bced8029 Store the number of EEPROM address bits in the softc. 2003-10-17 21:12:48 +00:00
thorpej
2d858d3912 Add internal representation for i82545 rev 3, i82546 rev3, i82541,
i82541 rev 2, i82547, and i82547 rev 2.
2003-10-17 20:57:32 +00:00
thorpej
e3ca7c2c73 Make the "align tweak" factor per-interface (since the MTU is per-interface). 2003-10-17 20:41:21 +00:00
cdi
61da4642b8 Introduce null console. This pseudo device acts as a normal console with the
exception that it discards any output, and is useful for booting the kernel
on headless boxes.
2003-10-17 20:27:38 +00:00
cdi
2b3e81f067 Introduce null console. This pseudo device acts as a normal console with the
exception that it discards any output, and is useful for booting the kernel
on headless boxes.
2003-10-17 18:16:42 +00:00
tsutsui
f7772c7c77 - No need to set VR_TXCTL_TLINK in vr_start() because all TX buffers have
only single segment.
- No need to set VR_CMD_TX_ON in vr_start().
- Initialize BCR0 and BCR1 registers.
- Change RX DMA threshold 128bytes.

Mostly from FreeBSD via OpenBSD.
2003-10-17 17:42:35 +00:00
mycroft
568ccf202d Add a comment explaining the INQUIRE behavior. 2003-10-17 16:44:48 +00:00
tsutsui
631fad8686 Misc cosmetics. 2003-10-17 16:39:09 +00:00
tsutsui
0a3ddecb47 Use common PCI macro/functions for PWRMGMT. 2003-10-17 16:00:43 +00:00