Commit Graph

20089 Commits

Author SHA1 Message Date
scw 41f5e2c5dd Add "goto done;" in the usbd_open_pipe(IN) failure case.
Coverity CID 2854, via Martin Husemann.
2006-04-11 23:08:08 +00:00
scw 6bf84bea06 Apply the correct fix for Coverity CID 2862. 2006-04-11 23:07:22 +00:00
tsutsui 0761a7c180 Free resources if attach fails. 2006-04-11 18:10:27 +00:00
garbled 1de17f11a8 Add an option PCKBCNOTEST and defopt it. On the prep 7043 and 7248
machines, the keyboard controller will not pass this test, but if you
attach anyway, it works fine.  Note that this test is specifically
disabled in ic/pckbc.c, but given that it seems to work fine on other
machines, leave it defaulted to on.
2006-04-11 17:14:44 +00:00
rpaulo 70a6f82fa4 Coverity ID 2311: in auixp_allocate_dma_chain() free dma variable if
we are unable to allocate hardware dma descriptors.
2006-04-11 16:34:57 +00:00
rpaulo 9fb903cf69 Coverity ID 2313: free ``asc'' on error. 2006-04-11 16:19:39 +00:00
macallan 82ce0b1388 A driver for 3Dfx Voodoo3 graphics boards, may or may not work with Voodoo4,
Voodoo5 or Banshee boards.

So far it supports:
- full acceleration in 8bit graphics mode
- video mode switching
- virtual consoles via vcons

So far it hasn't been tested on anything else than macppc and even there it
needs a hack to overload ofb.

TODO:
- test on i386
- don't hardcode video mode
2006-04-11 16:11:07 +00:00
rpaulo 8636f91142 Coverity ID 2443: In sbp_scsipi_detach_sdev() check for sdev and
target being NULL before dereferencing them.
2006-04-11 15:52:07 +00:00
rpaulo f7d1c1a028 Coverity ID 2440: in trm_timeout(), check if srb and xs are NULL
before trying to dereference them.
2006-04-11 15:49:00 +00:00
rpaulo 3fd310011d Coverity ID 2442: check if one can dereference ifp before calling
iwi_stop() in iwi_detach().
2006-04-11 15:42:56 +00:00
rpaulo ab299cced2 Coverity ID 2859: Don't leak ccb, move the allocation a few lines
lower next to where it'll be used for the first time.
2006-04-11 14:17:09 +00:00
christos 888007e5cb Coverity CID 2861: Check for out_data before cancelling. 2006-04-11 14:08:51 +00:00
christos a0ceb940b3 Coverity CID 2862: Don't initialize crc with garbage from the stack. For
now set it to 0.
2006-04-11 14:05:46 +00:00
bouyer 2aa3711744 Don't use ppr_option uninitialized. Coverity ID 2504. 2006-04-10 22:35:28 +00:00
bouyer 98675b2b44 Don't use ppr_options uninitialized. Coverity ID 2506. 2006-04-10 22:32:56 +00:00
pavel 3b08981d4d In rev. 1.98, the ioctl method of the (g)sip drivers was optimized for
SIOCSIFFLAGS: it compares the new flags with the old flags and avoids
reset if there are only certain changes. This was done to fix PR 29126.

It does not take into account, though, that there is other state which
can change and SIOCSIFFLAGS is called to inform about it.  Namely,
if_capenable, ec_capenable and ec_nvlans. For all three, the _init
method must program the hardware specially. Not doing it resulted in:
- VLAN frames getting truncated
- hw checksumming not working
- outgoing VLAN frames not being tagged when they should
- incoming VLAN frames being treated as untagged.

Fix by keeping all the old state in the softc and initializing the
hardware if any of it changes.

Tested on gsip. Also tested by Nino Dehne and Martin J. Laubach
on sip, thanks.

Fixes PRs 32900 and 33216.

Approved by martin@ .
2006-04-10 16:37:22 +00:00
riz 2d877b926c Add NetBSD RCSIDs 2006-04-08 23:41:46 +00:00
uwe 8398f3ff65 Whitespace nit. 2006-04-08 22:33:36 +00:00
christos 4b5dc3b5a8 - wrap memspace {}, pointed out by rui.
- comment out the memspace none case, pointed out by rui.
- move declarations to the top to avoid brace mess.
2006-04-08 20:55:22 +00:00
christos c2909c51dd Split the tuple parsing code in its own function for each kind, instead of
having a single parsing function that has more than 1000 lines of code.
2006-04-08 20:01:21 +00:00
rpaulo abddbf01be Back out rev 1.42 and 1.43. It's been causing much more hassle than it should
and I don't feel like continue arguing about it.
2006-04-08 15:59:59 +00:00
peter f75a258915 The altgr button has number 184, not 219. Change the jornada 720
key translation tables to use the correct number.

Patch for the US/UK model has been tested by Alex Poylisher & Mark Kirby.
2006-04-08 15:03:19 +00:00
uwe 712aacb6d4 Add missing $ sign at the end of the NetBSD rcsid tag. 2006-04-07 20:03:52 +00:00
riz 26b33f2587 Regen. 2006-04-07 18:56:37 +00:00
riz 637bfc29f9 Dallas Semiconductor 1-Wire bus support, from OpenBSD. Currently includes
gpioow(4), attaching a bit-banging driver via a GPIO pin.  Also,
owtemp(4) which supports some of the 1-Wire temperature sensors, including
the DS18b20 and DS1920 - temperatures are returned via the envsys(4)
framework.

Original drivers by Alexander Yurchenko (grange@openbsd), with envsys(4)
support and a fix to the 1-wire search algorithm (for discovering
devices on the bus) by me.

As discussed on tech-kern earlier this week.
2006-04-07 18:55:21 +00:00
drochner 3d2bb104a8 don't include opt_wsdisplay_border.h here, to limit dependencies 2006-04-07 14:30:20 +00:00
rpaulo 2fdcdded0b Add misssing }. Sorry for breaking the build. 2006-04-06 22:35:47 +00:00
rpaulo ed268c60d0 In pcmcia_parse_cis_tuple(), refactor the memspace section introducing
a switch statement and fixing CID 566.
2006-04-06 18:06:43 +00:00
thorpej 086b31316b A couple of fixes from dbj@:
- dkwedge_del(): Don't compute a minor number based on partitions, because
  wedges don't have partitions.  Just provide the unit number to vdevgone().
- dkopen(): Make sure we release all of the locks we've acquired should
  opening the parent device fail.
2006-04-06 17:55:43 +00:00
thorpej 7e075c58fe Implement dksize(). 2006-04-06 17:17:45 +00:00
drochner 41a5bdfbb9 kill NULL initialisation of get/setborder 2006-04-06 12:22:05 +00:00
dyoung 3bda9d9f8c In atw_start, do not initialize lasttx with -1, but initialize it
with the next free transmit descriptor.  Now, it is more obvious
that lasttx is not an illegal negative index into the descriptor
ring.  Remove a superfluous assertion.

Addresses Coverity CID 1319.
2006-04-06 06:08:26 +00:00
dyoung 660587743a Correct sc_bbptype, sc_rftype bounds checks. Fixes Coverity CID
1541.
2006-04-06 05:47:23 +00:00
simonb 1af5057c87 Regen. 2006-04-06 04:07:31 +00:00
simonb 36c6a8850d Sort some Intel GigE nics by product ID. 2006-04-06 04:06:52 +00:00
dyoung 9f1cdb7a4a Fix typo in comment, s/will be never/will never/. 2006-04-05 22:16:42 +00:00
nonaka 91dcd880bc Regen. 2006-04-05 20:09:47 +00:00
nonaka fd5e23a861 Added "Faraday Technology" in vendor list. 2006-04-05 20:09:22 +00:00
drochner 8390dd2605 update for accessops change (get/serborder removed) 2006-04-05 15:23:06 +00:00
drochner cd401662a8 Move the ga_getborder()/vga_setborder() calls from accessops to the
ioctl handler.
Also fix error reporting for the vga_getborder() call.
2006-04-05 15:19:54 +00:00
drochner 5b4dd527c3 Use the existing ioctl path to call WSDISPLAYIO_GBORDER/WSDISPLAYIO_SBORDER
instead of a separate accessops entry. There is no need to introduce bloat
for the majority of drivers which don't implement this feature.
This should also resolve PR kern/33186 by Valeriy E. Ushakov.
2006-04-05 15:18:25 +00:00
cherry 45a06839c0 Backing out previous commit for more review. 2006-04-05 02:40:57 +00:00
uwe ccf4b50a2c KNF: no parentheses around return value. 2006-04-05 01:13:50 +00:00
uwe a31a2f7d75 ANSI'ify. 2006-04-05 01:05:50 +00:00
uwe 0eaa91ef03 Add dc_stride member to igsfb_devconfig.
Eliminate all mentions of rasops_info from igsfb_ioctl(), we have all
the information in igsfb_devconfig now.  It's semantically correct to
serve that info from there, not from a cached copy in rasops_info.
2006-04-04 23:43:40 +00:00
uwe 771831be53 Use bus_space_vaddr() to get the address of the framebuffer. 2006-04-04 23:00:15 +00:00
uwe fc2595db94 Use designated initializers for wsscreen structs. It takes less space
and is easier to read.  While here, update function name in comment.
2006-04-04 22:36:15 +00:00
uwe 3995a3168e Nuke delay() that sneaked in with one of old revisions. It's not
necessary.

When we attach as console on netwinder, the timer is not yet attached,
so delay() resorts to a busy loop.  That loop takes BIGNUM seconds(!)
to complete.  That makes you think the machine wedged.
2006-04-04 22:25:23 +00:00
riz 99cd9e5be7 Correct a couple of typos in comments ("Hook info" -> "Hook into",
"prescision"->"precision")
2006-04-04 19:38:38 +00:00
cherry fb6529c627 Sleeps hard disk just before system shutdown.
Some hardware (eg: Apple iBooks) don't do this automatically
and the harddisk behaves as if the power plug were pulled.

Closes PR: kern/32766
2006-04-04 07:11:45 +00:00