Commit Graph

16021 Commits

Author SHA1 Message Date
ad
f67ac65f3d Uninitialized variable. 2003-10-28 14:18:39 +00:00
augustss
6f77e29fd2 Appease new awk by changing \$ to $. 2003-10-28 10:35:12 +00:00
augustss
5a1764fb26 Regen. 2003-10-28 10:33:18 +00:00
augustss
fe59444985 Add Treo 600. From kern/23290. 2003-10-28 10:32:54 +00:00
simonb
393d075aa5 Fix bogus uninitialised warning. 2003-10-28 09:52:32 +00:00
cl
b8d68ee313 note 'm68k {u,}int64_t used uninitialized' bug.
add reference to gcc bug report.
mark all (known) occurrences.
2003-10-28 02:01:46 +00:00
fvdl
44954feab8 Add a driver for the Intel IGPE1000 PHY as found on 82541 and 82547 chips.
Not yet enabled anywhere.
2003-10-28 00:15:40 +00:00
fredb
fc4e07a00b Appease gcc3 "-Wno-uninitialized". 2003-10-27 23:06:15 +00:00
fredb
fa27252b6c Appease gcc3 -Wno-uninitialized (even though blkno is clearly assigned in
each branch of a conditional).
2003-10-27 23:03:05 +00:00
thorpej
db71356cd1 - Change callout_setfunc() to require that the callout handle is already
initialized.  Update the txp(4) to compensate.
- Statically initialize the TCP timer callout handles in the tcpcb
  template.  We still use callout_setfunc(), but that call is now much
  less expensive.  Add a comment that the compiler is likely to unroll
  the loop (so don't sweat that it's there).
2003-10-27 16:52:01 +00:00
chs
b3a3d69b22 uninitialized variables. 2003-10-27 07:14:25 +00:00
chs
3b6d3c710c uninitialized variables 2003-10-27 07:07:34 +00:00
christos
50459b4529 Fix uninitialized variable warnings. 2003-10-27 06:15:52 +00:00
chs
44d9d27c84 don't print an uninitialized variable. 2003-10-26 23:42:57 +00:00
fvdl
4784db999a Regen after clarifying IGPE1000 name. 2003-10-26 22:25:53 +00:00
fvdl
4589fc061f Make the name of the IGPE1000 a bit clearer. 2003-10-26 22:24:58 +00:00
fvdl
7ec692e7d5 Regen after adding IGP01E1000. 2003-10-26 21:35:13 +00:00
fvdl
065b2aa956 Add Intel IGP01E1000 phy. 2003-10-26 21:34:44 +00:00
fvdl
5602142448 Fix unitialized var warning, add a comment to indicate that it's use
is suspect.
2003-10-26 21:03:34 +00:00
fvdl
f64435e552 Fix unitialized variable use. 2003-10-26 20:53:09 +00:00
christos
05f07448b6 Another possibly uninitialized lasttx 2003-10-26 19:11:33 +00:00
christos
5220c0436c Fix unitialized variable warnings. 2003-10-26 19:10:42 +00:00
christos
93af726cde Don't return random garbage in the default case; return the smallest ring
descriptor instead.
2003-10-26 18:20:43 +00:00
lukem
f85d2d1c14 Use ${HOST_SH} instead of `sh'.
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-26 07:25:33 +00:00
fvdl
e645b8b032 Add definitions for 8139C+ and 8169 chips. Not used yet. From FreeBSD. 2003-10-25 23:48:45 +00:00
christos
fb6335f225 Don't return random errors. 2003-10-25 21:33:36 +00:00
christos
9269644881 Fix uninitialized variable warning. 2003-10-25 21:33:04 +00:00
christos
d2705ee1d2 make this compile again. I should really rename the FreeBSD KASSERT to
KASSERT2 or something.
2003-10-25 21:32:44 +00:00
christos
b132a6334c Fix uninitialized variable warnings. 2003-10-25 21:31:43 +00:00
christos
9350ac9046 return not break. 2003-10-25 21:31:20 +00:00
christos
5945f04b69 Fix completely bogus printf that used uninitialized variables. 2003-10-25 21:30:47 +00:00
christos
e71ca6c8f4 Initialize variables sooner, and remove variable that was only used
uninitialized in a debugging printf.
2003-10-25 21:30:03 +00:00
mycroft
4f4b36f2f3 Fix the previous differently. 2003-10-25 20:26:25 +00:00
mycroft
8e823735c6 break -> return in previous. 2003-10-25 20:19:01 +00:00
christos
987510aee5 KASSERT takes 2 arguments here. 2003-10-25 19:41:44 +00:00
christos
b3ae88ff5d Fix uninitialized variable warning. 2003-10-25 19:12:08 +00:00
christos
8bfd5e3292 Fix uninitialized variable warnings 2003-10-25 18:34:14 +00:00
christos
125ccd91b1 Fix uninitialized variable warnings 2003-10-25 18:29:12 +00:00
christos
1cb1045a68 Fix uninitialized variable warnings. 2003-10-25 18:28:31 +00:00
chs
7bd0896538 regen 2003-10-25 16:24:44 +00:00
chs
ae220470c0 add some missing. uncomment some. alphabetize. 2003-10-25 16:24:30 +00:00
chs
7d1b5d21fd regen 2003-10-25 16:22:25 +00:00
chs
897a586840 add some misc cards I've got. 2003-10-25 16:21:31 +00:00
chs
0e9360f160 NULL -> 0 2003-10-25 16:15:07 +00:00
simonb
aa16c3e512 Fix a couple of tyops. 2003-10-25 15:00:38 +00:00
simonb
7e135f3a2e Make this compile with older gcc. 2003-10-25 13:45:07 +00:00
christos
21027e6048 more uninitialized variables 2003-10-25 08:37:00 +00:00
christos
551bd8b829 fix uninitialized variables 2003-10-25 08:30:46 +00:00
mycroft
f253f37fb0 In wi_newstate(), read the BSSID into a temporary buffer that has guaranteed
alignment.  Fixes a really obscure failure mode on Alpha, and panics on other
machines.
2003-10-24 23:58:22 +00:00
mycroft
4ed6e478a6 + NetGear FA511 2003-10-24 17:04:16 +00:00
mycroft
f4bdf17ebc Fix awk warnings. 2003-10-24 17:01:58 +00:00
tsutsui
6c2bb73613 Add support for Acard ATP865/A Ultra100 IDE Controllers. From Tsubai Masanari. 2003-10-24 15:50:02 +00:00
tsutsui
723afbe9db Remove trailing whitespace. 2003-10-24 15:47:49 +00:00
kent
cc9f31d5b2 auich_reset_codec:
wait for readiness of one of all codecs.
2003-10-24 04:06:44 +00:00
mycroft
a480189bf8 Remove IDE_PCI_CLASS_OVERRIDE -- it wasn't actually used anywhere. In lieu of
it, add a class/subclass check to drivers that do not (appear) to have a unique
ID for the IDE controller.  This includes aceride, cypide and optiide.
2003-10-24 00:24:15 +00:00
mycroft
ef51dc08fc NULL -> 0 2003-10-23 23:52:16 +00:00
mycroft
56e88d0d24 NULL -> 0 2003-10-23 23:25:39 +00:00
fvdl
d85a7f8656 Need the NOCRC bit, or my 5704B5 will start acting up. 2003-10-23 20:36:36 +00:00
bouyer
e0f02bb281 If we found a compat channel disabled, unmap the registers. There may be
an ISA IDE adapter at the same address.
2003-10-23 19:29:35 +00:00
fvdl
4df6c69646 * match more cards (from FreeBSD)
* don't set the NOCRC bit in the mode control register, it can cause
  problems on some chips (from the broadcom errata via FreeBSD)
* implement a fallback quirktable that is searched only using the
  major asic revision, so that the driver has a shot at supporting
  newer versions properly without modification
* rename asicrev -> chipid, like the FreeBSD driver
2003-10-23 17:41:59 +00:00
kent
5286b24afb Change the short names of nForce:
nForce-MCP -> nForce
 nForce-MCP-T -> nForce2
 nForce-MCP-T -> nForce3

Use snprintf() and strlcpy() instead of sprintf() and strcpy().
2003-10-23 17:14:54 +00:00
kent
3afd3b3671 - remove unused code
- print diagnostic messages if the primary codec does not get ready in
auich_reset_codec().
2003-10-23 17:05:26 +00:00
fvdl
142de57c80 Regen. 2003-10-23 16:02:09 +00:00
fvdl
ef2ab367bd Add a few more broadcom 57xx ids. From FreeBSD. 2003-10-23 15:54:13 +00:00
fvdl
b4c1912d80 * match the nForce3 controller
* search the whole current PCI bus for the VIA bridge, can't rely on
  it to be function 0 of the same device
2003-10-23 14:27:09 +00:00
ragge
c4690aa593 Set snd queue size to max(WM_IFQUEUELEN, IFQ_MAXLEN), instead of hard to
WM_IFQUEUELEN.
2003-10-23 12:53:02 +00:00
kent
27d4af4355 No need to check the codec ready flag in read_codec() and write_codec().
According to the ICH datasheets, the flag is unchanged unless resetting
the codec.

The flag is useless after enabling bus mastering.  This behavior is common
to all ICH chips.  The quirk handling code is removed.
2003-10-23 05:25:29 +00:00
briggs
8cfe8cd526 After discussion between mycroft and enami, restore the WDC_PCMCIA_ATTACH
flag and use it to avoid an extra power cycle during the probe process.
2003-10-23 03:56:36 +00:00
briggs
193b74f006 Regenerate for ENE Cardbus product IDs. 2003-10-23 00:47:45 +00:00
briggs
cdb1c2e5bf Add some ENE Cardbus bridges from FreeBSD. 2003-10-23 00:46:56 +00:00
uwe
6a7a7e91e7 Add missing newline at the end of an error message. 2003-10-23 00:22:55 +00:00
briggs
3448998b43 Try to deal better with card removal during the card enabling process. 2003-10-23 00:04:03 +00:00
briggs
7dc8540d52 Avoid a race condition that could allow a removable controller (such as
a compact flash card) to lock the atabus thread if it gets detached during
the probe process.
2003-10-22 23:59:00 +00:00
augustss
f42962a2c2 Add Dvorak keyboard map. From PR kern/23230, jacereda@tractor.act.uji.es. 2003-10-22 17:24:43 +00:00
manu
8beb6e32ae Patch from http://mail-index.netbsd.org/current-users/2003/09/04/0018.html
to fix problems with a sound card
2003-10-22 15:57:33 +00:00
thorpej
0f781c4abb Add support for the SPI EEPROM found on the newer i82541 and i82547
chips.  Add the i82541 and i82547 product IDs to the table, #if 0'd
out, for now (there are still more changes to come for these new chips
to work properly).
2003-10-22 15:50:39 +00:00
briggs
0fd0bfe35a enami noted that my last fix was not correct. Simplify the code some (and
make it more correct) by removing a flag to track wdc attachment.  Disable
the function after wdcattach() is called, and remove a conditional when
enabling the function in wdc_pcmcia_enable().
2003-10-22 15:03:04 +00:00
fvdl
91371415b1 Match the Promise FastTrak 378. 2003-10-22 11:32:40 +00:00
fvdl
ba07312903 Match the nForce3 AC-97 chip. 2003-10-22 11:32:12 +00:00
fvdl
653fb67506 Regen. 2003-10-22 11:31:18 +00:00
fvdl
5b7cf69d6e Add:
* an id for the Promise FastTrak 378
	* several ids for NVidia nForce3 devices
2003-10-22 11:30:52 +00:00
mjl
e959b27d7f Typo in comment. From OpenBSD. 2003-10-22 09:04:39 +00:00
mjl
088da88a56 Typos in comments. From OpenBSD. 2003-10-22 09:02:49 +00:00
agc
df214f1879 Don't use NULL when an integer is needed. 2003-10-22 08:58:38 +00:00
briggs
1e810e3178 Since we enable the pcmcia function on attach, disable it on the detach. 2003-10-22 07:48:25 +00:00
briggs
40823fb6bb Maintain reference count properly for nested enables/disables. 2003-10-22 07:46:48 +00:00
augustss
6d60d8ab89 Re-add the quirks that force certain In-System Design adapters to appear
as (non-standard) ATA over BBB adapters.  Without these quirks they are
not regocnized by the umass driver.
2003-10-22 05:38:16 +00:00
mycroft
98fb62de25 Add a code that appeared in a PR recently. 2003-10-22 00:35:41 +00:00
christos
55222ec4a6 Regen 2003-10-22 00:18:32 +00:00
christos
c1ce37728d Remove backslash for new gawk 2003-10-22 00:17:39 +00:00
christos
ddccf85c50 support for NE2000_TYPE_AX88790 from
Yong-Jhen Hong yongjhen at alqualonde dot org
2003-10-22 00:12:36 +00:00
tsutsui
680fc37c3b Remove declarations of constab[] and *cn_tab. They are in <dev/cons.h>. 2003-10-21 17:03:52 +00:00
thorpej
3e560e2b48 Add a TODO list item. 2003-10-21 16:52:08 +00:00
thorpej
c50f2ac573 - Move the i82540EM (LOM) along with the other i82540 product IDs.
- Match the i82545GM (1000BASE-T and 1000BASE-X) and i82546GB
  (1000BASE-T and 1000BASE-X) product IDs.
2003-10-21 16:51:17 +00:00
thorpej
a866babe44 If we're on PCI-X, look up the PCI-X capability. Verify that the
max memory read byte count in the command register is <= the max designed
memory read byte count in the status register.  If not, reset it to the
status register's value.  This is necessary because some BIOSes configure
the wrong value, and the wrong value confused some versions of the PCI-X
capable chips.
2003-10-21 16:41:51 +00:00
thorpej
fa32a2cf94 - Since we access PCI config space as 32-bit words, redefine the PCI-X
command register bits offset and shifted appropriatly (PCI-X command
  makes up the upper 16 bits of the register that holds the PCI-X cap ID
  and next-cap-pointer).
- Define shift counts for max memory read byte count in the command
  and status registers.
2003-10-21 16:22:48 +00:00
tsutsui
281b9dfec6 vaddr_t is not pointer, so don't compare it against NULL. 2003-10-21 16:17:18 +00:00
simonb
45cf1137ea Remove break after return. 2003-10-21 06:22:46 +00:00
simonb
7feb1a91fa Remove return after panic(). 2003-10-21 06:22:16 +00:00
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