Commit Graph

19908 Commits

Author SHA1 Message Date
christos f7f0b66150 Do not use SCARG() in userland. Eliminates need for <sys/systm.h>. 2006-03-09 23:44:43 +00:00
he 17acd2c1c5 Add recognition of Nortel Baystack 21 as an rtk8139 variant.
Rest of information submitted in PR#33044.
2006-03-09 22:17:49 +00:00
he 09dd8aa07e Commit regenerated files after adding Nortel Baystack 21 info. 2006-03-09 22:15:19 +00:00
he ca9813a911 Add vendor code for Nortel and Baystack 21 id. Part of info
submitted in PR#33044.
2006-03-09 22:14:48 +00:00
macallan b4978607ac keep the chip powered down when not in use on machines that support it
( like SPARCbooks ) - needs testing on other machines
tested on my SPARCbook 3GX
2006-03-09 20:44:18 +00:00
jmcneill 777ce723e2 Save and restore PCI configuration state on suspend/resume. 2006-03-09 16:02:55 +00:00
hamajima 2e79c90835 Add support for EXAR XR17D15x serial.
(I tested only XR17D154.)
2006-03-09 15:16:13 +00:00
hamajima 3762b561e7 Regen: Add EXAR devices, and fix duplicated NVIDIA product id 0x0057. 2006-03-09 15:09:13 +00:00
hamajima 190c7ab6ea Add EXAR devices.
Fix duplicated NVIDIA product id 0x0057.
2006-03-09 15:06:45 +00:00
macallan 4e4b29e7e3 this should have been committed with p9100.*
add the vcons attribute to pnozz
2006-03-09 05:42:35 +00:00
lukem a1f606d3fd Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
2006-03-08 23:46:22 +00:00
macallan a12ced4fd9 sprinkle #if NWSDISPLAY > 0 to make this compile cleanly without wscons again 2006-03-08 20:09:01 +00:00
dyoung cafe884d2c Change macro names to avoid collisions:
BIT -> __BIT
BITS -> __BITS
2006-03-08 08:26:50 +00:00
dyoung ce412dc403 Straggler from previous commit: rename macro LSHIFT->SHIFTIN. 2006-03-08 00:26:43 +00:00
dyoung f66403a698 Move my bit-twiddling macros to libkern.h from my drivers, where
I had duplicated them.  Improve the macros' names.  Simplify their
implementation.

A brief description of each macro is below.

        BIT(n): Return a bitmask with bit m set, where the least
                significant bit is bit 0.

        BITS(m, n): Return a bitmask with bits m through n, inclusive,
                    set.  It does not matter whether m>n or m<=n.
                    The least significant bit is bit 0.

        A "bitfield" is a span of consecutive bits defined by a
        bitmask, where 1s select the bits in the bitfield.  SHIFTIN,
        SHIFTOUT, and SHIFTOUT_MASK help read and write bitfields
        from device registers.

        SHIFTIN(v, mask): Left-shift bits `v' into the bitfield
                          defined by `mask', and return them.  No
                          side-effects.

        SHIFTOUT(v, mask): Extract and return the bitfield selected
                           by `mask' from `v', right-shifting the
                           bits so that the rightmost selected bit
                           is at bit 0.  No side-effects.

        SHIFTOUT_MASK(mask): Right-shift the bits in `mask' so that
                             the rightmost non-zero bit is at bit
                             0.  This is useful for finding the
                             greatest unsigned value that a bitfield
                             can hold.  No side-effects.  Note that
                             SHIFTOUT_MASK(m) = SHIFTOUT(m, m).

Examples:

/*
 * Register definitions taken from the RFMD RF3000 manual.
 */
#define RF3000_GAINCTL          0x11            /* TX variable gain control */
#define         RF3000_GAINCTL_TXVGC_MASK       BITS(7, 2)
#define         RF3000_GAINCTL_SCRAMBLER        BIT(1)

/*
 * Shift the transmit power into the transmit-power field of the
 * gain-control register and write it to the baseband processor.
 */
atw_rf3000_write(sc, RF3000_GAINCTL,
    SHIFTIN(txpower, RF3000_GAINCTL_TXVGC_MASK));


/*
 * Register definitions taken from the ADMtek ADM8211 manual.
 *
 */
#define ATW_RXSTAT_OWN          BIT(31)         /* 1: NIC may fill descriptor */
/* ... */
#define ATW_RXSTAT_DA1          BIT(17)         /* DA bit 1, admin'd address */
#define ATW_RXSTAT_DA0          BIT(16)         /* DA bit 0, group address */
#define ATW_RXSTAT_RXDR_MASK    BITS(15,12)     /* RX data rate */
#define ATW_RXSTAT_FL_MASK      BITS(11,0)      /* RX frame length, last
                                                 * descriptor only
                                                 */

/* Extract the frame length from the Rx descriptor's
 * status field.
 */
len = SHIFTOUT(rxstat, ATW_RXSTAT_FL_MASK);
2006-03-08 00:24:06 +00:00
dyoung e9dba3e91c Rename BIT(n) macro to _BIT(n) to avoid a conflict with forthcoming
bit-twiddling macros.
2006-03-08 00:14:20 +00:00
peter 4cab041d0b Jornada 720 US/UK: map the win and fn buttons correctly.
Problem reported and patch tested by Alex Poylisher.
2006-03-07 23:39:39 +00:00
jmcneill e20bf2a14d Don't try to suspend while already suspended. 2006-03-07 23:16:20 +00:00
bouyer c743cbc911 Regen: added more serverwork SATA controllers. 2006-03-07 22:12:14 +00:00
bouyer d43ac7ad9d Also support Serverwork Frodo4, Frodo8 and HT-1000 in svwsata.
From OpenBSD.
2006-03-07 22:11:25 +00:00
wiz e2a71c2aab 'advertisment' -> 'advertisement', from leonardo chiquitto filho
via jmc@openbsd.
2006-03-07 18:15:28 +00:00
jmcneill d5491c459e Put the device in D3 state when it's not in use to save power. 2006-03-07 15:18:59 +00:00
jmcneill d2e442a982 Add a 'powerstate' callback to audio_hw_if, to allow hw drivers to power
themselves down when not in use.
2006-03-07 15:17:47 +00:00
bouyer 6fd7d5ae1b Regen for serverworks K2 SATA addition. 2006-03-07 08:56:44 +00:00
he 94da908135 Remove another instance of the SET/CLR/ISSET macro tripelet, now
found in <sys/types.h>.
2006-03-07 08:21:00 +00:00
matt 319869c477 Don't cast lvalue. remove uninitialized reference. 2006-03-07 04:45:52 +00:00
macallan 8700623aff - use vcons
- enable the external VGA port when tctrl detects a monitor
2006-03-06 21:53:17 +00:00
shige 94274c9331 Add r2025rtc. 2006-03-06 20:29:06 +00:00
shige 2e6c8a97d2 Add a driver for RICOH R2025S/D I2C RTC. 2006-03-06 19:55:08 +00:00
bouyer f656fa41eb Add svwsata(4), a driver for Serverworks K2 SATA controllers. From
OpenBSD via Joerg Sonnenberger.
2006-03-06 18:35:24 +00:00
martin 60e2115aff Add support for Moxa CP104 serial card, from Olivier Cherrier 2006-03-06 08:26:20 +00:00
martin 013227eddd Regen (MOXA devices added) 2006-03-06 08:24:13 +00:00
martin eb0fe4f28c Add MOXA devices, from Olivier Cherrier 2006-03-06 08:23:00 +00:00
he fbe2f1783f Remove another instance of the SET/CLR/ISSET macro triplet, now found
in <sys/types.h>.
2006-03-06 08:13:58 +00:00
augustss 94cd2a4171 Use polling while shutting down the host controller since interrupts
cannot be trusted at this point.  From Iain Hibbert <plunky@rya-online.net>.
2006-03-05 23:12:58 +00:00
rjs b2e4ee2926 Remove SET/CLR/ISSET macros. 2006-03-05 19:10:30 +00:00
christos 1b2709754a cleanup more SET/CLR/ISSET lossage 2006-03-05 17:33:33 +00:00
jmmv 2d776141d4 Add keysyms for f13, f14, f15 and f16 (as reported by an Apple USB Spanish
keyboard).  Somebody with a US keyboard should check if these are applicable
in that case too.

Fix mapping of the ccedilla/rightbrace key on Spanish keyboards.  Looks like
as if that key can be reported by two different keycodes.
2006-03-05 16:08:18 +00:00
jmmv 05e04b5edf Add missing closing parenthesis to a diagnostic message. 2006-03-05 16:04:37 +00:00
thorpej 59c5bfcbfc LP54 -> LP64 in a comment. 2006-03-04 20:44:11 +00:00
thorpej e49323e509 Static'ify. 2006-03-04 19:20:50 +00:00
peter c3f9ee5dc3 Add keyboard translation for the Jornada 720 Japanese, US/UK (ABA, ABU)
and "International English" (ABB) models.

Share the existing Jornada 680/690 (hpcsh) keyboard layouts with
Jornada 720 (hpcarm).
2006-03-04 13:52:38 +00:00
gdamore 7bfe0f79a2 Fix a few minor errors in the config data. Tested with a sample config. 2006-03-04 03:01:29 +00:00
gdamore d1f918faef Added a test driver program.
Regenerate videomode.c to pick up NetBSD tag.
2006-03-04 02:37:24 +00:00
gdamore aba10b3dc5 Initial swag at common video mode database. Not used for anything (yet). 2006-03-04 02:34:27 +00:00
nakayama 0cd845d575 Avoid shadowing globals on sparc64. 2006-03-04 01:22:31 +00:00
dyoung 25e9e914b4 Miscellaneous ath(4) and net80211 updates and bug-fixes coming from
sam@ and various open source repositories:

ath(4):

        Ignore "phantom" beacon misses: should stabilize connections
        to access points (no more ceaseless link-UP/DOWN indications).
        Also, re-synchronize beacon timer using the TSF in the
        first beacon received after joining a BSS---this should
        also help suppress spurious beacon misses.  I am hopeful
        that this will help ath(4) lossage reported by perry@ and
        smb@.

        Add new configuration through sysctl.

        Use a shorter calibration interval until IQ calibration
        finishes.

        Report antenna noise through radiotap.

        Rudiments of Radar Detection / Dynamic Frequency Selection.

        Update to HAL version 0.9.16.13.

        Update open sources for changes to the HAL API.

        Add HALs for additional architectures: add big-endian ELF
        HALs for sparc64 and for PowerPC.  Also add a Alpha HAL.
        These new HALs are untested under NetBSD.

ath(4) + net80211:

        Make the multicast transmit rate configurable by ioctl.

        Miscellaneous bug fixes.
2006-03-02 03:38:26 +00:00
dyoung 3df1c332db Stop-gap solution to Atheros Cardbus cards losing (crypto?) hardware
state: after the device attaches, do not ever remove power from
the cardslot.  Without this patch, ath@cardbus does not work reliably
in WPA/WPA2 networks.

XXX A better solution is to restore the hardware state that gets
XXX scrambled by removing and re-applying power, but I haven't
XXX found out precisely what state is scrambled, yet.
2006-03-02 01:24:00 +00:00
dogcow d52723dd8c add a bunch of Nvidia nForce ethernet IDs (via OpenBSD.) 2006-03-01 22:22:36 +00:00
oster 17ebfc7e6c Fix lossage related to device_is_a() changes. Fix from cube@ (thanks!).
Tested by me.
2006-03-01 21:41:49 +00:00