Commit Graph

6921 Commits

Author SHA1 Message Date
gdamore
9a2b9dd63b Reorganize ath layout as requested by sam@ and suggested by dyoung@ in
http://mail-index.netbsd.org/tech-net/2006/03/15/0000.html.

The new layout almost precisely matches FreeBSD, and should make
future imports much easier.

At the same time, import the current 0.9.16.16 HAL from FreeBSD.  According
to sam@, this is the proper version we should be using.
2006-04-02 05:52:14 +00:00
cherry
d600e81a73 closes: PR kern/32359
modifies machine/db_machdep.h: BKPT_SET(inst) to BKPT_SET(inst, addr) for all archs ie; passess the
breakpoint address as well.

Patch from cherry@mahiti.org
2006-04-01 15:44:58 +00:00
rittera
ace2baad8b Updated to the latest NDIS code. I added commented out lines in the files
arch/i386/conf/GENERIC, arch/i386/conf/files.i386 and dev/pci/files.pci which
can simply be uncommented to compile NDIS into the kernel.  I'll write some
documentation on this soon.

Note that NDIS is still somewhat experimental.  It is currently tested and
functions relatively well on on two cards:
1. Dell (Broadcom) TrueMobile 1400 Dual Band WLAN Mini-PCI
2. Intel EtherExpress Pro/100
2006-03-31 00:03:57 +00:00
pavel
dc1372c547 Add stf to all kernel configs which have INET6 and gif, except the INSTALL
ones and those for specific machines of developers. PR 32304.

OK'ed by rpaulo.

N.B. stf is a cloning device, so it still must be enabled by
"ifconfig stf0 create".
2006-03-28 20:58:39 +00:00
thorpej
39cd836ee1 Use device_unit(). 2006-03-28 17:38:24 +00:00
bouyer
03999c340c For unknown CPU, if family >= CPU_MAXFAMILY set family to CPU_MINFAMILY instead
of CPU_MAXFAMILY. This effectively causes to downgrade to i386 class
instead of a nonexistant class, and overrunning  classnames[] by one.
Coverity ID 1472.
2006-03-27 20:59:35 +00:00
xtraeme
1482c4e379 Enable rgephy(4). 2006-03-25 17:44:29 +00:00
bouyer
3c77a3806d A config file for a kernel+ramdisk do install NetBSD on a Xen3 DomU. 2006-03-20 22:34:02 +00:00
briggs
a8fffa1ddf After reading up a bit in the ia32 system architecture manual, take
a shot at enabling thermal monitoring.  On a Dell MP Xeon here, the
BIOS leaves the CPU out of spec. by not enabling thermal monitoring
at all.  It looks like this code is not properly handling TM2 for
P-4 systems.  Pentium-D and Pentium-4 systems enable TM2 differently.
I'm not sufficiently clued-up to deal with that at the moment.
2006-03-20 05:21:27 +00:00
bouyer
22b8bc3c2f Add xbd at xenbus, and limit MAXPHYS to 32k. The Xen vbd interface doesn't
handle 64k transfers (it's limited to 11 * PAGE_SIZE), and splitting requests
in xbd make things much more complex than needed.
2006-03-19 00:39:36 +00:00
xtraeme
4a4be4e854 Match the VIA VT8237 chipset, too. ok'ed by jmcneill 2006-03-17 19:52:35 +00:00
gdt
81331897bb Add wi* at pci, to make PRISM mini PCI cards work. Tested on IBM
Thinkpad T30 2366-97U.
2006-03-17 12:43:35 +00:00
jmcneill
e651416a9e Add 'iic* at viapcib?', commented out. 2006-03-17 12:25:01 +00:00
jmcneill
e4e8429c20 Add (commented out) definitions of viapcib attachments. 2006-03-17 12:22:14 +00:00
jmcneill
73e1e8a116 Add support for the VIA SMBus controller found on the VT8235 PCI-ISA
bridge.
2006-03-17 12:19:49 +00:00
drochner
b89e2072ab need to set uio_vmspace for XMM accesses 2006-03-16 18:59:17 +00:00
drochner
0aa0d9a4cb revert accidental commit of local changes, pointed out by
Geoff Wing and Tom Spindler
2006-03-16 10:13:55 +00:00
dogcow
e3ac1915cb For every season, churn, churn, churn.
To fix lingering problems with the LV/ULV Pentium Ms that run with a 400 MHz
FSB (738, et al), change ENTRY() yet again to directly include the FSB
multiplier - CPUID isn't enough to determine what it should be.
While I'm at it, add more values for the 750, and fix values for the 730
and 770 to jibe with what the 'prescribed' values (via ACPI) are.

Fixes PR/33080 and PR/33081.
2006-03-15 22:56:38 +00:00
drochner
47fbb9d86b adapt to uvm_fault() interface cleanup: kill the useless 3rd argument 2006-03-15 18:12:02 +00:00
dogcow
8aacb40fba Rearrange the Dothan table a bit, and fix the 738 CPUID (6d6, not 6d8).
Move the voltage-level check into the cpu ID loop, since it seems that
CPUs with the same ID string and the same CPUID can have different voltage
levels. Thank you, Intel.
2006-03-15 01:31:20 +00:00
chs
11921f1910 add nfe. 2006-03-12 22:57:01 +00:00
kleink
31930d4de5 Provide BCD<->binary conversion in libkern and turn <dev/clock_subr.h>'s
FROMBCD()/TOBCD() macros into wrappers around it, resulting in both
smaller code footprint and elimination of possible issues due to
multiple evaluation of macro arguments.

Suggested by Simon Burge and Anders Gavare on tech-kern.
2006-03-11 15:40:07 +00:00
jmcneill
5e2e06bb91 We shouldn't have to manually edit acpi_wakecode.h after it has been
regenerated. Pad wakecode with "0x00" rather than "0x  ".
2006-03-11 00:31:42 +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
dyoung
cafe884d2c Change macro names to avoid collisions:
BIT -> __BIT
BITS -> __BITS
2006-03-08 08:26:50 +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
rpaulo
1d38428ed2 Add Pentium M 730 1.6Ghz. 2006-03-07 18:20:54 +00:00
thorpej
61dd49d3bc Syscall debug tracing is handled by trace_enter() / trace_exit(). Change
trace_is_enabled() to return TRUE if SYSCALL_DEBUG is defined, and g/c
all of the SYSCALL_DEBUG handling from individual system call dispatch
routines.
2006-03-07 07:21:50 +00:00
thorpej
be8b235384 Clean up fallout proc_is_traced_p() change:
- proc_is_traced_p() -> trace_is_enabled(), to match trace_enter() and
  trace_exit().
- trace_is_enabled() becomes a real function.
- Remove unnecessary include files from various files that used to care
  about KTRACE and SYSTRACE, but do no more.
2006-03-07 03:32:04 +00:00
dogcow
f50580b5db Add a slew of CPUID information, and now deal correctly with 533FSB CPUs.
un-revert the 760 frequencies, as a consequence.
2006-03-07 02:16:04 +00:00
bouyer
e7ef71f0c6 Config file for Xen3 DomU kernel. 2006-03-06 22:28:44 +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
tron
d143d2f4b2 Correct use of "#ifdef" and "#endif" broken in last commit. 2006-03-06 10:08:58 +00:00
christos
c3eb071ee0 We always need syscall_fancy now. 2006-03-06 05:40:28 +00:00
xtraeme
a420f4f543 Revert frequencies for Pentium M 760 as reported by Neil Ludban. Also
to check cpuid signature must use ci_signature.
2006-03-05 22:06:46 +00:00
christos
beea4fc3fa Add a proc_is_traced_p() macro and use it, instead of copying the same code
in many places. Idea from thorpej.
2006-03-05 19:08:38 +00:00
yamt
d20904bbba make these compile w/o SYSTRACE. 2006-03-05 12:31:23 +00:00
yamt
a4d64c0d94 make this compile. 2006-03-05 12:22:46 +00:00
christos
a4495f4cec implement PT_SYSCALL 2006-03-05 07:21:37 +00:00
christos
753afc00ad provide strings for the machdep ptrace calls. 2006-03-05 07:17:21 +00:00
bouyer
7aeabae8ba Remove wscons options, XENU doens't have any wscons device. 2006-03-01 19:41:12 +00:00
yamt
ec5a93183a merge yamt-uio_vmspace branch.
- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.
2006-03-01 12:38:10 +00:00
xtraeme
b9993157d7 PR port-i386/32864: Neil Ludban. Pentium M 760 SpeedStep support. 2006-02-27 19:25:45 +00:00
xtraeme
c1ca5092a9 Add support for the Pentium M 773, 758 and 778 matching
against the correct cpuid. Adapted from OpenBSD.
2006-02-27 18:37:03 +00:00
jmcneill
cf4e65bbe1 Disable vesafb_powerhook for now. 2006-02-27 13:41:40 +00:00
christos
1b02e59c4e PR/32937: Stefan Sonnenberg-Carstens: Added support for Pentium M 740,
1.73 GHz Enhanced SpeedStep frequency settings
2006-02-26 19:40:53 +00:00
dyoung
f140ae1967 Add tags from sys/arch/x86/ to the i386 tags file. 2006-02-26 03:08:02 +00:00
christos
1b49426ea4 remove vinum 2006-02-25 01:31:02 +00:00
jmmv
8bd6f83897 Repeat previous for SPLASHSCREEN* options. 2006-02-24 10:20:32 +00:00
jmmv
84d6418155 Use 'options<space><tab>' in the recently added vesafb stuff so that
uncommenting those lines leaves them properly aligned.
2006-02-24 10:05:41 +00:00