Commit Graph

80040 Commits

Author SHA1 Message Date
chs 32d9a1dba7 regen 2006-03-14 04:49:00 +00:00
chs bf841929a2 add an rlphy clone from IC Plus. from openbsd. 2006-03-14 04:48:44 +00:00
yamt 6bf35dc8ec bump NFS_MAXDGRAMDATA from 32k to 60k. (ie. near the protocol limit of udp.)
- it can help performance for some environments.
- administrators should be free to do silly things. :-)
2006-03-14 03:23:23 +00:00
christos 064fae4646 Apply patch from Cory Bajus for writing to the RTC 2006-03-14 02:52:48 +00:00
christos 9d6d828103 regen 2006-03-13 16:30:41 +00:00
christos 6a955644f8 kern/33071: Dave J. Barnes: Recognize ADMtek ADM8515 USB2.0 Ethernet Converter 2006-03-13 16:29:58 +00:00
shige ab1557fd3e Remove obsled devices (using old gpio framework). 2006-03-13 16:20:58 +00:00
shige 61e6e07d5b IBM4xx on-chip GPIO controller applying MI GPIO framework. 2006-03-13 16:17:57 +00:00
shige 17629c725d IBM4xx on-chip GPIO controller apllying MI GPIO framework. 2006-03-13 15:31:11 +00:00
he 343425c577 Add a forward declaration of "struct trapframe", to allow declaration
of a pointer to it in the syscall handling function.
2006-03-13 10:50:16 +00:00
yamt 7935de6ea7 use UIO_SETUP_SYSSPACE instead of using vmspace_kernel() directly. 2006-03-13 08:52:07 +00:00
yamt 0969bf3261 copyin_vmspace, copyout_vmspace: set uio_vmspace correctly.
from Christos Zoulas.
2006-03-13 03:17:47 +00:00
chs 11921f1910 add nfe. 2006-03-12 22:57:01 +00:00
he 9ba1519dcc Now that FROMBCD and TOBCD is in <sys/dev/clock_subr.h>, delete the
local definitions here.
2006-03-12 22:55:19 +00:00
yamt 04ff17cc06 fix mistakes in yamt-uio_vmspace changes. 2006-03-12 22:44:27 +00:00
chs 6231c90f1c add nfe. 2006-03-12 22:42:54 +00:00
chs 9b48410235 from OpenBSD:
We need to special case ciphy to ask for RGMII interface at 2.5V for nfe.
This makes Cicada/Vitesse PHYs attached to nfe work.
Many thanks to Bill Paul for diagnosing the problem and suggesting a solution.
2006-03-12 22:41:41 +00:00
chs 388c5496c2 add nfe driver and manpage from OpenBSD. 2006-03-12 22:40:42 +00:00
chs abfe2afbd4 regen 2006-03-12 22:35:32 +00:00
chs 097466ce91 fix name of Radeon 9000 Pro.
add Radeon 9200 Secondary ID.
add Comtrol, Magma and SIIG multi-port serial cards.
add more Dolphin SCI cards.
add IBM ServeRAID 4/5.
add Mitsubishi Tornado 3000.
add or rename various NVIDIA IDs to match openbsd.
add SafeNet SafeXcel.
2006-03-12 22:34:41 +00:00
chs 04a5c7d219 fix match for RealTek 8201L. 2006-03-12 22:30:24 +00:00
cube 209be910b7 Support the generation of coredumps for 32-bits binaries under
COMPAT_NETBSD32.  They haven't worked for 5 years.

Silently agreed by the tech-kern readers.

XXX sparc64 MD glue still lacking.
XXX The FPU registers on i386 are not dumped correctly, according to my
XXX tests.  It shouldn't be much work for someone who has the slightest
XXX idea of how that stuff is supposed to be laid out on i386.
2006-03-12 20:25:25 +00:00
christos 40a6c72b1d KNF: brace and parenthesis usage 2006-03-12 18:36:58 +00:00
matt 5c53cf65da Fix various places where assignment happen to casted lvalues.
(t)v = foo; is not legal C.
2006-03-12 17:14:41 +00:00
yamt 6c02fe74a4 proc_vmspace_getref: treat curproc specially to fix coredump problem pointed
by Christos Zoulas.
2006-03-12 10:32:47 +00:00
yamt 33f0a013e3 fix copyout_proc after yamt-uio_vmspace merge. from Christos Zoulas. 2006-03-12 09:47:08 +00:00
kochi 90cb0d3a79 Merge ACPI-CA 20060217 2006-03-12 06:48:15 +00:00
dyoung 8a1b831b7f NetBSD authorities apprehended and confiscated these leading spaces
pursuant to KNF regulation 100145.92, "All your leading ASCII-SP
is belong to us."  The code was set up the ASCII-TAB.
2006-03-12 03:34:37 +00:00
dyoung c205496a96 Note in radiotap header file and manual page that radiotap fields
are little-endian.  Fix wi(4) and atw(4) to reflect this fact.
2006-03-12 03:22:02 +00:00
dyoung f94708e4c4 Bug fix: fields in the radiotap header are little-endian, make it so. 2006-03-12 03:07:50 +00:00
christos 8958999012 welcome to syscall_intern. 2006-03-12 02:04:26 +00:00
kleink f027f13a5f Make this build again with RESIDUAL_DATA_DUMP defined. 2006-03-11 20:12:49 +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
simonb c66cd10ee8 Trim use of "volatile" a little. 2006-03-11 14:07:35 +00:00
simonb fd0ea3e657 Remove some blank lines. 2006-03-11 13:56:18 +00:00
simonb fd3935c60b Remove pc532 from the list of machines not yet using mi_userret(). 2006-03-11 13:53:41 +00:00
simonb e30b0d0cb4 Use syscall_intern() to give a process a plain or fancy syscall,
moving system call functionality from trap.c to new syscall.c
Split out userret from trap.c to <machine/userret.h> and use
mi_userret().
This gets approx 20% speed improvement (45us to 36us) with lmbench's
"lat_syscall null" benchmark(!).
2006-03-11 13:52:58 +00:00
scw 12dc74f622 RB_POWERDOWN trumps RB_HALT. 2006-03-11 09:09:41 +00:00
jmcneill bbd8f9b955 Add Intel AGP powerhook. Tested on an 82855PM. 2006-03-11 02:35:06 +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
dyoung cb909aeabe Fix typo: change an impossible bitfield (ends at bit 32) to a
possible one (ends at bit 31).
2006-03-10 23:37:35 +00:00
macallan 11d027c528 Make external mice work on Tadpole SPARCbook
The tadpole microcontroller sets an additional bit in frame headers from
an external mouse which caused our driver to discard the frame - now we
just ignore the bit.
2006-03-10 20:25:45 +00:00
jmcneill f4578655f4 On suspend, capture PCI configuration registers. On resume, restore them
as well as explicitly reclaiming ownership of the UHCI/EHCI from the BIOS.
2006-03-10 17:21:20 +00:00
he 0bb12d5132 Remove include of <prep/dev/obiovar.h>, as that file no longer exists,
and this file does apparently not need it.
2006-03-10 17:19:46 +00:00
jmcneill cd5f1cb627 Add bit definitions for PCI_LEGSUP register. 2006-03-10 17:18:54 +00:00
christos 5e6b1075e2 PR/33049: OKANO Takayoshi: Fix the spelling of NetBSD RCS tags. 2006-03-10 15:53:55 +00:00
yamt a5fe09f2de remove a wrong assertion. 2006-03-10 11:07:01 +00:00
christos f7f0b66150 Do not use SCARG() in userland. Eliminates need for <sys/systm.h>. 2006-03-09 23:44:43 +00:00
uwe 042caffba8 XXX: #undef SET before including <machine/config_hook.h>, which defines
SET as a nickname for CONFIG_HOOK_SET to be used in kernel config files.
Makes ioconf.c compile again.
2006-03-09 23:41:13 +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 934c5059a7 add commented out DBRI_* options 2006-03-09 20:58:40 +00:00
garbled 7001ea36f9 Make INSTALL compile again with the new changes. Try to clean it up a
little too.
2006-03-09 20:58:12 +00:00
macallan 494a6eb736 default to sun terminal emulation, add DBRI_* options and comments 2006-03-09 20:58:00 +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
gdamore 08f478e5ab Fix the RTC so that the AU1550 keeps accurate time. The RTC is taken from
the TOY register, which is presumed to be seconds since Jan. 1 2000.

For now I'm assuming the trim divider is 32K, which makes 1 tick per sec.
This is true for the DBAU1550 board at least.  Other boards might need to
initialize a reasonable trim counter and establish the 32KHz oscillator.

In any case, this code is *no worse* on older systems than what was there
before.
2006-03-09 20:42:18 +00:00
garbled fbf9d81aaf Deleting this kernel. These days it looks pretty much identical to
GENERIC.. so I'm not sure what it is supposed to be an example of.
2006-03-09 20:22:52 +00:00
garbled 1dd8b98704 Prep super-commit:
1) create new pnpbus psuedo bus.  This is a bus layer that reads the PNP
tree from the residual data and allows attachment of devices with the
information given therein.  Based loosely on i386/pnpbios.

2) Delete obio bus, as with the pnp bus we no longer need it.

3) Create a number of functions that gather the information needed to set
up the machine from the residual data, rather than hardcoding it in.

4) Create a quirk table for machines that are bizzare enough that the
residual information is not sufficient.  (such as the 6015)

5) Using the data gathering routines and the quirk table, delete struct
platform completely from the architecture.  Prep is now almost completely
dynamic in figuring out the machine it is running on and setting things
up properly.

6) Add a wdc_pnpbus driver which attaches the wdc controller found on
some 7248's and the 6015.  This replaces the now-defunct wdc_obio.

7) delete all the mot_* and ibm_* files, and replace them with a single
ibm_machdep.c which only contains the quirk functions for the 6015 and
the 6050.

8) Modify GENERIC to work with all this stuff.
2006-03-09 20:17:27 +00:00
he f45aef6127 Remove now-unused local variable. 2006-03-09 18:50:17 +00:00
he cbc9e47bd2 Give it 10000 bytes more SYMTAB_SPACE, so that it fits again. 2006-03-09 18:48:20 +00:00
wiz 009e260f10 Fix a URL. From OKANO Takayoshi in PR 33001. 2006-03-09 18:07:53 +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
hubertf 164b476f23 Add & enable smbfs
Patch by Michael-John Turner <mj@turner.org.za> on port-sparc64@,

Reviewed & OK'd by martin@
2006-03-09 11:38:15 +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
scottr 9e93b0c323 Cleaner check for offset to grf_mmap 2006-03-08 23:37:15 +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 fe756b012b config(8) creates opt_ah.h, no need to do so here. 2006-03-08 17:06:07 +00:00
dyoung f2746f1ea3 No need to create opt_ah.h here, config(8) takes care of it. 2006-03-08 17:03:13 +00:00
nathanw 422fd73258 This copy of bus_dma.c is unused; evbppc ports have referenced
powerpc/powerpc/bus_dma.c for over two years.
2006-03-08 15:18:39 +00:00
he 927b30ab63 Remove yet another instance of the macro triplet SET/CLR/ISSET, now
found in <sys/types.h>.
2006-03-08 12:10:58 +00:00
he 5bc221cbe3 Remove yet another instance of the macro triplet SET/CLR/ISSET, now
found in <sys/types.h>.
2006-03-08 10:48:40 +00:00
sekiya 11927f82ba The network bootloader entry point should be nisse(), not start(). Fixes a
very long-standing netboot issue.

Patch contributed by Hans Rosenfeld.
2006-03-08 09:32:22 +00:00
dyoung cafe884d2c Change macro names to avoid collisions:
BIT -> __BIT
BITS -> __BITS
2006-03-08 08:26:50 +00:00
thorpej b0275539fe Make extent_alloc_subregion(), extent_alloc(), and extent_alloc1() real
functions, not CPP macros.
2006-03-08 04:43:00 +00:00
jonathan b9c6a2634b Rework Linux sysctl()-emulation, so that on amd64, we return the same
Linux kernel-version as on i386 and ppc (currently 2.4.18), and a date
in Feb 2002.

On all other NetBSD platforms we return a Linux-kernel version of
2.0.38 and a date sometime in 2000, which (AFAIK) predates the
existence of amd64, and therefore predates Linux support for amd64.

To me, it makes much more sense to return the same Linux-kernel-version
and date for both 32-bit x86 and 64-bit x86.

Empirically (and not least), this change also allows SuSE 10 amd64
binaries to run under our Linux amd64 binary emulation (both static
and dynamic-linked, given suitable setup) , which they didn't when we
reported a Linux/x86_64 kernel version of 2.0.38.
2006-03-08 03:55:31 +00:00
christos 93edf29420 Fix clock reading problem on turbo nexts and color slabs. First
reported by: Timm Wetzel twetzel at gwdg.de on 2001-06-22, and now
again by: Cory Bajus cbajus at mts.net
2006-03-08 03:29:49 +00:00
msaitoh 1e5874b3c2 fix memory leak when resetting the source address and destination address. 2006-03-08 03:09:33 +00:00
christos f02eb7273c rename ISSET to ISBITSET. 2006-03-08 02:10:04 +00:00
macallan d443f196f2 report lid and AC power state to sysmon 2006-03-08 01:17:49 +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
he 8aa8bfed52 Remove another instance of the macro triplet SET/CLR/ISSET, now
found in <sys/types.h>.
2006-03-07 23:32:53 +00:00
he ed846418fd Remove unused ISSET macro. 2006-03-07 23:30:19 +00:00
he 488517487a Conditionally undefine ISSET before defining it locally with
different expansion (tests a given bit number).
2006-03-07 23:26:24 +00:00
he 81afc84174 Remove another instance of the macro triplet SET/CLR/ISSET, now
found in <sys/types.h>.
2006-03-07 23:19:05 +00:00
he fa612b7436 Remove local ISSET macro definition. 2006-03-07 23:18:31 +00:00
jmcneill e20bf2a14d Don't try to suspend while already suspended. 2006-03-07 23:16:20 +00:00
jld 25ab6c9464 Improve timekeeping under Xen. Specifically, replace use of
cc_microtime with a MD function that isn't affected by erratic "clock
interrupts" and instead takes more advantage of time information
provided by the hypervisor.  Fixes, most importantly, a case where the
clock as seen by userland would sometimes bounce back and forth by up to
1<<31 us (~35 min).

Approved by bouyer@; explained in more detail in
http://mail-index.netbsd.org/port-xen/2006/02/28/0002.html
2006-03-07 23:08:14 +00:00
bouyer c743cbc911 Regen: added more serverwork SATA controllers. 2006-03-07 22:12:14 +00:00
he 097212d1dd Remove another instance of the macro triplet SET/CLR/ISSET, now
found in <sys/types.h>.  Also removed ISCLR, and transformed the
single use to !ISSET.
2006-03-07 22:12:05 +00:00
bouyer d43ac7ad9d Also support Serverwork Frodo4, Frodo8 and HT-1000 in svwsata.
From OpenBSD.
2006-03-07 22:11:25 +00:00
christos b2927ed049 remove unused ISCLR macro. 2006-03-07 19:15:50 +00:00
macallan c415b408ad switch to wscons 2006-03-07 18:57:40 +00:00