Commit Graph

4926 Commits

Author SHA1 Message Date
mrg c2b95373bf remove clause #3 from my license where there are no other
copyright holders involved.
2008-05-29 14:51:25 +00:00
mhitch 72715a9ae8 Add bio(4) support, heavily from OpenBSD. The driver doesn't know which
physical drives belong to which logical drive, so all the physical drives
will show up for logical drive 0, and also appear for logical drives that
are rebuilding so that the rebuild state will show the physical drive
being rebuilt.  Locking for the scratch buffer is currently missing - system
quickly quits responding when I try to lock the buffer with mutex_{enter,exit}().
2008-05-25 20:08:34 +00:00
ad 5e4b324300 Properly fix the "hanging in tty" bug that was worked around with cv_wakeup()
some time again.
2008-05-25 19:22:21 +00:00
chs 56f22e2d1f include uvm/uvm_extern.h for trunc_page() on sparc
(where the page size isn't a compile-time constant).
2008-05-25 16:21:54 +00:00
jnemeth 3f1ee498b5 Import siisata(4) by Jonathan A. Kollasch.
The siisata driver supports the Silicon Image SteelVine family of SATA-II
     controllers, interfacing the hardware with the ata(4) and atapi(4) sub-
     systems.

     The following controllers are supported by the siisata driver:

           Silicon Image SiI3124 4-port PCI/PCI-X
           Silicon Image SiI3132 2-port PCI-Express x1
           Silicon Image SiI3531 1-port PCI-Express x1

     SATA Native Command Queueing is not yet supported.
     Device hot swapping is not yet supported.
     Silicon Image's Software RAID is not yet supported by the
             ataraid(4) driver.

Approved by: core (christos), releng (bouyer)
2008-05-23 21:11:40 +00:00
hauke 215d0dd444 Fix NetBSD version tag. 2008-05-23 10:46:10 +00:00
hauke f5ede5dc2e Added driver for the Creative Systems Inc. Hurdler CPI parallel printer card.
Timecounter support for the Z8536 counters A + B is not complete, yet.

Reviewed by Martin Husemann.
2008-05-22 19:49:43 +00:00
dyoung d825f046e4 Remove some #ifdef __FreeBSD__ code. 2008-05-16 22:11:51 +00:00
tsutsui b87210fa51 Normalize my licenses. 2008-05-14 13:29:27 +00:00
christos 5b61e403a2 don't play with timevals directly, use the macros. From OpenBSD 2008-05-13 22:16:27 +00:00
ad 107b551a56 Include machine/cputypes.h explicitly. 2008-05-11 14:25:48 +00:00
mjacob 9ce916ad92 Make fc scratch acquisition something that can fail. Remove in_intr flag.
Otherwise synchronize with changes made due to other platforms.
2008-05-11 02:08:11 +00:00
martin d6c07702bb Years in license are four digits 2008-05-10 11:52:20 +00:00
bouyer a868052c66 Wait 100ms after we resseting the PHY and found that a device is preent.
Some device seems to need a bit of delay before being ready to accept a
command (such as my SATA cdrom drive)  May fix port-i386/38548.
As a bonus this makes the dmesg output prettier, by not mixing PHY
status with ATA/ATAPI probe.
2008-05-07 13:52:12 +00:00
jdc fd15456f57 Correct Sbus register definitions. 2008-05-07 06:36:48 +00:00
jdc cde723377a Add some Sbus-specific definitions (more registers and more values in the
Sbus Config register).
2008-05-06 21:09:34 +00:00
tsutsui 2925cedf26 - use RTK_IDR[0-5] registers to get MAC address on RTL8168C
- change sc_rev numbers to match quirk numbers used in Realtek's driver
- tweak some register definitions
Taken from Realtek's FreeBSD driver.

Untested yet on 8168C, but no bad sideeffect on older chips.
2008-05-06 11:45:00 +00:00
jmcneill 729313d52c Use 2-clause license. 2008-05-05 00:12:49 +00:00
rumble 6d44774c77 If a device transmit timeout occurs and sc_txintrperiod is greater than
one, throttle it down before the reset. This way the user need not know
the magic `hw.ath0.txintrperiod=1' fix if the default value is too high
for their machine.
2008-05-04 20:02:06 +00:00
martin 637bc2e71d Move TNF licenses to 2 clause form 2008-05-04 19:43:05 +00:00
xtraeme dd178c786e mii_dev is a device_t now. 2008-05-04 17:14:41 +00:00
xtraeme 7db0e57765 device_t/softc split for all mii(4) devices, and other related
cosmetic changes.
2008-05-04 17:06:09 +00:00
xtraeme db484efd57 device_t/softc split for spic(4) and other related cosmetic changes. 2008-05-04 16:13:35 +00:00
martin 592397db3f Move to standard TNF 2 clause license 2008-05-04 12:59:38 +00:00
martin 3b114abfef Move to standard TNF 2 clause license 2008-05-04 12:50:38 +00:00
martin 4685680579 Move to standard TNF 2 clause license 2008-05-04 12:43:45 +00:00
tsutsui 8f9452f5e9 Change my mail address to netbsd.org one. 2008-05-03 05:21:25 +00:00
tsutsui 868bd69966 - remove dead URL of datasheet
- change my mail address to NetBSD.org one
2008-05-03 05:20:01 +00:00
cegger 03b1eeebc1 compile-fix with MULTIPROCESSOR. From Hans Rosenfeld. 2008-05-01 12:06:28 +00:00
ad 1498ad220e Make various bits of debug code compile again. 2008-04-30 14:07:13 +00:00
scw 1de1c389bf Pull in some more changes from OpenBSD:
- replace rssadapt(9) with amrr for automatic rate control.
- don't blindly IFQ_DEQUEUE() then drop a Tx packet if there are no
  available Tx resources.
- move default MAC/BBP/RF settings from rt2661.c to rt2661reg.h.
- enable packet bursting when operating as a STA.
- implement new ic_updateslot() callback.
- in hostap mode, we defer update of the slot time until all associated
  STAs are notified with updated beacons.
- 802.11a uses a 16 microseconds short interframe space.
- Fix rt2661_set_macaddr() so that we don't override the "unicast to me"
  flag in RT2661_MAC_CSR3 when setting the MAC address.
- fix index of ERP information element in beacons.

Add a couple of tweaks of my own:

- The RX/TX BUSY flag should be the last thing written to a descriptor.
- Check and service any additional h/w interrupts before returning
  from the isr.

Tested in STA, AP, and Monitor modes. Tested with WEP, WPA, and WPA2 crypto.

Additional testing by xtraeme@
2008-04-29 22:21:45 +00:00
nakayama c887d75771 Make it compile again on big endian, and restore CVS keyword. 2008-04-29 17:48:43 +00:00
tsutsui f07b0a1491 Fix a leakage on device_t/softc split. PR kern/38541 from HITOSHI OSADA. 2008-04-29 14:16:57 +00:00
martin 3028e483e4 Convert to new 2 clause license 2008-04-29 06:53:00 +00:00
matt d22fb7c7d0 More forgotten changes from matt-armv6. 2008-04-28 22:00:01 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
garbled fcdfd014d7 Minor fixes to some of these files:
Add recognition for the CS4232C revision chip. (0xa2)
Make ic/ad1848.c compile with AUDIO_DEBUG
Add a needed machine/bus.h include to ic/cs4231.c
Add a few additional register defines to ic/cs4231reg.h
2008-04-28 18:49:27 +00:00
cegger 0713fc37a9 ansify 2008-04-26 12:03:43 +00:00
tsutsui 82cc885228 Split device_t/softc for re(4) and rtk(4). 2008-04-25 11:27:19 +00:00
tsutsui 3b31064c9a Split softc/device_t and misc cleanup for sn(4). 2008-04-23 13:29:44 +00:00
cegger ac625f0f59 revert rev. 1.16 and redo the fix as proposed by oster per private mail 2008-04-22 22:49:49 +00:00
cegger 36244f71ec Fix error path:
Don't try to free non-allocated memory. Only free allocated memory.
This fixes a crash reported by Brian A. Seklecki on port-xen:
http://mail-index.netbsd.org/port-xen/2008/04/10/msg003555.html

Fix tested by Brian A. Seklecki:
http://mail-index.netbsd.org/port-xen/2008/04/21/msg003604.html
2008-04-22 09:29:08 +00:00
ad a2249ef75c Make ntp, pmc, reboot, sysarch, time syscalls MPSAFE. 2008-04-21 12:56:30 +00:00
tsutsui fa0277bb60 - use uint8_t instead of u_char for unsigned byte values
- make cs_softreq volatile
2008-04-20 15:42:47 +00:00
tsutsui 74a2e40f00 The DP83932C manual says the CAM enable register (CER) can't be
accessed on normal operations and the CER should be set up
through the last entry in the CAM desciptor area and loaded
via LCAM command, so make our driver do so, though the previoius
code (writing CER directly) worked without problems.

Tested on sn at jazzio on arc (in 32bit mode) by me and
sn at nubus on mac68k (in 16bit mode) by Paul Ripke on port-mac68k.
2008-04-19 06:59:08 +00:00
tsutsui 12cb822366 Fix a typo which is fatal on cards configured in 16 bit mode.
Problem is reported and fix is confirmed by Paul Ripke on port-mac68k.
2008-04-19 06:39:43 +00:00
tsutsui effdbc2aa4 - use aprint_*() variants only in functions called during autoconf(9)
- wrap long lines
2008-04-18 19:01:15 +00:00
joerg 5d29393a65 NetBSD has no such thing as DEVICE_POLLING, so remove it. 2008-04-18 16:05:30 +00:00
cegger 5db505451b Fix panics at boot and some other misc bugs. From Hans Rosenfeld. 2008-04-18 14:56:40 +00:00
cegger b849cd90e5 device_t / softc split. From Hans Rosenfeld 2008-04-15 15:02:28 +00:00