Commit Graph

74539 Commits

Author SHA1 Message Date
scw
2d0fc26c46 Address PR kern/28990 by making Synaptics Touchpad support contingent
on "options PMS_SYNAPTICS_TOUCHPAD" in the kernel config file. See
the PR for details on why this is necessary.

While here, defflag PMS_DISABLE_POWERHOOK.
2005-01-18 10:22:51 +00:00
chs
a69406e59e sun2 no longer abuses cf_unit. 2005-01-18 07:34:09 +00:00
chs
348f7d206d sh3 no longer abuses cf_unit. 2005-01-18 07:30:49 +00:00
chs
14956c87b7 x68k no longer abuses cf_unit. 2005-01-18 07:30:27 +00:00
chs
05bac5b187 use a global variable to ensure that only one instance is configured
rather than requiring that its unit number be zero.
simplify by not pretending that x68ks can have more than 1 com
(which they might actually have, but the driver doesn't currently allow it).
determine which instance is the console by comparing the iobase rather than
the unit number (which is silly given the above, but whatever).
2005-01-18 07:28:46 +00:00
chs
8b1c7b2e30 use a new "addr" locator for grf instead of the unit to match the instance
to the hardware.  use a new "grfaddr" locator to match ites to their grfs,
instead of requiring that their unit numbers be the same.
2005-01-18 07:27:20 +00:00
chs
d57ca0cff9 de-__P, remove register, ansify. 2005-01-18 07:12:15 +00:00
tsubai
fcad06a784 Regen. 2005-01-18 06:24:18 +00:00
tsubai
e5b7a48413 Add some Apple devices. 2005-01-18 06:23:01 +00:00
uwe
8fc1984171 Kill trailing whitespace. 2005-01-18 06:05:52 +00:00
uwe
80e190d19b Use uint<N>_t instead of u_int<N>_t. 2005-01-18 06:03:31 +00:00
dyoung
fc524c150b Use IFQ_DEQUEUE instead of IF_DEQUEUE on if->if_snd to be consistent
with IFQ_SET_READY(&if->if_snd) elsewhere, and also to enable
ALTQ(9) on ipw(4).
2005-01-18 04:31:09 +00:00
uwe
5176524b6f Use uint<N>_t instead of u_int<N>_t. 2005-01-18 04:09:09 +00:00
uwe
a1e2e32edf Rewrite pfckbd_callout_hitachi() to do the same scan line dance that
pfckbd_callout_hp() does.  Change the order of scan and the layout of
the matrix to be more natural.

Chords like <Shift>+<L> now work.

From KIYOHARA Takashi.
2005-01-18 03:59:11 +00:00
oster
26187fa579 ForceReconReadDoneProc() needs a return after doing the first
rf_CauseReconEvent().
2005-01-18 03:29:51 +00:00
martin
ab7375f57f More changes from Michael Lorenz:
- fix a panic in mach64_alloc_screen()
 - some cleanup
 - restrict mach64_mmap() to addresses which belong to it
 - mach64_attach now prints bus addresses instead of kernel vm addresses
 - initial support for macppc
2005-01-17 22:52:46 +00:00
matt
98b6754e59 Fix problem with unclosed comments 2005-01-17 22:41:23 +00:00
dsl
02a6e19ef1 Fix comment, code is requesting CHS geometry, not max LBA sector 2005-01-17 21:28:51 +00:00
drochner
0baafe8595 separate the requirements for OSF1 compat from NetBSD's 2005-01-17 20:13:25 +00:00
shige
75299da6ed Add openbios dependent code to obs405 machine-dependent modules. 2005-01-17 17:24:09 +00:00
shige
ce880a5946 Remove openbios dependent code from ibm4xx/ibm40x dependent module. 2005-01-17 17:19:36 +00:00
shige
6e7077020b Move struct propdb *board_info to powerpc/ibm4xx/board_prop.c. 2005-01-17 17:14:56 +00:00
shige
50f317e0f4 Add board properties database code. 2005-01-17 17:13:49 +00:00
briggs
5a6a395c0b Add option COMPAT_20. Pointed out by Chris Tribo in PR port-macppc/28988. 2005-01-17 16:42:55 +00:00
shige
0f2e586866 Add openbios-board related modules.
- openbios.c
	getting board data memory image from openbios.
	setting all board data to board properties database.
  - board_prop.c
	initialize board properties database.
	(set/get board properties [macros in ibm4xx/cpu.h])
2005-01-17 16:23:27 +00:00
cube
ec53a61e98 Add tap(4) support to a random^Wcarefully chosen set of kernel configs.
All those kernels have a line for both tun and bridge, and if either is
commented out, tap is commented out also.  With the exception of i386's
GENERIC_TINY.

XXX:  we _need_ some way of making this more simple.
2005-01-17 15:28:51 +00:00
minoura
c2a6ed3b7b Fix panic when precision < 8.
From kent@.
2005-01-17 14:13:19 +00:00
minoura
6a6ea8a9fc mfp_attach() is called twice (console init & real config). 2005-01-17 14:06:14 +00:00
scw
731215b5bf Support Broadcom BCM5222 dual 10/100 media interface. 2005-01-17 13:17:45 +00:00
scw
24e6317bf7 Regen for Broadcom BCM5222. 2005-01-17 13:16:50 +00:00
scw
68480055b3 Add entry for Broadcom BCM5222 Dual 10/100 media interface. 2005-01-17 13:16:19 +00:00
augustss
c9d494cae1 Make it compile with debug. 2005-01-17 12:24:37 +00:00
itojun
57fd095fdf shouldn't check code field on "packet too big" icmp6 message. 2005-01-17 10:16:07 +00:00
martin
d1663b2528 In bus_dmamap_load_mbuf some diagnostic tests (#ifdef DEBUG) are only valid
if we are going to return success.
2005-01-17 07:55:18 +00:00
simonb
3c2980238e Now that countless UVM bugs have been fixed and the MIPS pmap_prefer()
can deal with topdown for CPUs that need to deal with cache alias
conflicts (thanks Andrew Brown!), enable "topdown" memory allocation by
default.
2005-01-17 05:26:02 +00:00
atatat
17b1390278 Teach mips pmap_prefer() to deal with topdown.
Tested by simonb.
2005-01-17 04:54:14 +00:00
atatat
a076957818 Convert the PMAP_PREFER() macro from two arguments (offset and hint)
to four (adding size and direction).

In order for topdown uvm to be an option on ports using PMAP_PREFER,
they will need to "prefer" lower addresses if topdown is being used.
Additionally, at least one port also needs to know the size.
2005-01-17 04:37:20 +00:00
joff
944e317a54 dont use TX intrs and various other performance improvements 2005-01-17 02:32:29 +00:00
dyoung
1a198218b9 Delete an out-of-date comment. 2005-01-17 01:48:56 +00:00
chs
95c9f4ab0a add some whitespace. 2005-01-16 23:52:12 +00:00
chs
085319fca3 use ENTRY_NOPROFILE() for various entry points,
stack traces work better that way.
2005-01-16 23:50:13 +00:00
chs
60eac8c78f echo the objcopy we actually run. 2005-01-16 23:40:34 +00:00
chs
dcc797e3dc increase SYMTAB_SPACE again. 2005-01-16 23:39:44 +00:00
chs
bb5a198f3d reduce db_maxoff from 256MB to 1MB, that should be plenty. 2005-01-16 23:38:47 +00:00
chs
831b9cc380 remove some dead code, simplify and wrap some long lines. 2005-01-16 23:26:19 +00:00
chs
0b7dee4b92 implement pmap_wired_count(). use more macros for determining MMU type. 2005-01-16 23:19:52 +00:00
chs
bfbf7ea9b1 implement pmap_wired_count(). fix some places we would forget to splx().
move the parts of pte.h that were used into pmap.c (since they were really
pmap-internal details) and delete ibm4xx/pte.h.  other misc cleanup.
2005-01-16 21:35:58 +00:00
bouyer
c306ebdd4c Also call ata_dmaerr() on DMA errors (as reported by the underlying controller
driver). We want to downgrade to PIO mode if DMA isn't functionnal.
2005-01-16 20:17:37 +00:00
drochner
2eaf2fb804 Use sendsig_sigcontext() as signal delivery function instead
of the generic (NetBSD specific) sendsig().
We can only work with ...sigcontext for now anyway; the
versioning stuff in sendsig() isn't helpful for osf1 emul.
2005-01-16 20:01:48 +00:00
drochner
2fdf16521b Make osf1_sys_sigaction() use the internal sigaction1()
instead of the compat16_ thing.
This saves 2 pointless copyout/copyin cycles to/from
the "stackgap" buffer, and it gets us a step closer
to a COMPAT_OSF! which works w/o COMPAT_16.
This still doesn't support SA_SIGINFO because the old
COMPAT_16 signal trampoline is used.
2005-01-16 19:57:09 +00:00
tsutsui
18cc5c6cd5 Comment out options XSERVER, which was required by old pccons. 2005-01-16 14:58:42 +00:00
kent
9dd560ddf7 * uaudio_round_blocksize()
calculate playing blocksize and recording blocksize independently
2005-01-16 12:46:00 +00:00
dyoung
55940f7c4e Move the register access mode into struct rtw_regs. Change
rtw_set_access, rtw_set_access1 to match.

Add a subroutine for setting WEP keys.  WEP isn't quite finished,
because I have to add the WEP header to Tx packets.  Implement the
SIOCS80211NWKEY ioctl for setting WEP keys.

Program the LEDs based on operating state and packet activity.

 * On a Revision F RTL8180, blink LED1 at 1Hz to indicate
   scan/authenticate/associate states.  In the run state, turn LED1
   on.  In every state, blink LED1 at 5Hz to indicate non-beacon
   tx/rx activity.  I would like to use two LEDs, but in all my
   Rev. F instances, LED0 is not wired to an LED; instead, the
   first LED is wired to indicate that the card's power is on.

 * On a Revision D RTL8180, program the LEDs so that LED0 indicates
   Tx, and LED1 indicates Rx.  The Rx LED will blink annoyingly if
   there are beacons in the air, but at least the Tx LED is useful.

 * Store the hardware revision in the softc to support my futile
   attempt at programming LEDs for both Rev. D and Rev. F parts;
   I never did get Rev. D LEDs to work right.

 * Add a debug flag RTW_DEBUG_LED for the LED transitions.

Add RTW_TPPOLL_ALL, RTW_TPPOLL_SALL to start and stop, respectively,
all of the transmit rings.

In ad hoc mode, allocate a beacon and load it into the beacon ring.
Start the ring.  In one trial, the card re-transmitted the beacon
ring's contents several times before stopping.  More programming
and testing for ad hoc mode is necessary.  I'm not setting the
beacon flag in the transmit descriptor.

Revamp the transmit section to make better use of all the transmit
rings:  beacon queue, high-, low-, and medium-priority rings.  Put
beacon frames on the beacon ring.  All other management frames,
and data frames, go on the medium-priority ring.  Power-save data
frames go on the high-priority ring.  (Note that powersaving is
not implemented!)  This is a work in progress.

Send all 802.11 Management frames at 1Mbps.

After we put a packet on a transmit ring, tickle the right bit in
the TPPOLL to tell RTL8180.  Stop all rings on error and in rtw_stop.

Use the RF chip type, not the RTL8180 revision, to choose between
host- and MAC-controlled RF serial I/O.  Now the Netgear MA521
works.

Remove bogus definition of bit RTW_TPPOLL_FSWINT.
2005-01-16 11:50:43 +00:00
dyoung
500260511f It's necessary to stop DMA on the beacon ring and reconfigure the
beacon after an IBSS merge, or else beacons transmissions may not
resume like we expect.  From Sam Leffler.
2005-01-16 11:43:34 +00:00
dyoung
07a485e480 Cosmetic: shorten a staircase. 2005-01-16 11:37:58 +00:00
dyoung
a4bb6a73ed Fix a misuse of ether_sprintf so that IBSS merges are printed
xx:xx:xx:xx:xx:xx -> yy:yy:yy:yy:yy:yy instead of
xx:xx:xx:xx:xx:xx -> xx:xx:xx:xx:xx:xx.
2005-01-16 11:36:54 +00:00
mycroft
ea0b1cb353 Just to be absolutely correct, wait an additional 1ms after the "power cycle"
event, to cover the RESET Width (Tw (RESET)).
2005-01-16 08:56:29 +00:00
mycroft
b0345c674e Christos's crappy Libretto 100CT has an extremely long ramp for socket Vcc
(violating the PC Card spec), so... use the "power cycle" socket event to
determine when we've reached Vcc before proceeding, rather than using a fixed
amount of time.  This has the double advantage that it makes the card attach
time even shorter on sane systems -- the minimum is now ~38ms on my i8500
rather than 222ms.

Probably a similar change should be made to pcic, but it was hard enough
figuring out whether it would work with pccbb.  The chip specs suck.

For now, I'm leaving in a couple of additional printf()s in the hope that I
will get some interesting data from them.
2005-01-16 08:51:55 +00:00
yamt
b855149311 remove no longer needed #include. 2005-01-16 06:48:38 +00:00
dsainty
ba43333ef8 Make this compile (after previous commit) with UAUDIO_DEBUG defined 2005-01-16 06:02:19 +00:00
hamajima
1daa6c5284 Apply patch hpcmips/26158 (requested by darkstar)
This patch solves install/28656.
2005-01-16 03:21:21 +00:00
christos
78ec5c8f06 Disable the oow test because it is broken. It is killing valid packets. 2005-01-16 02:56:22 +00:00
chs
584edb5b1a simplify by not pretending that mac68k can have more than 1 zsc. 2005-01-16 00:33:43 +00:00
chs
12fcee381e only match one instance (instead of an unlimited number).
simplify by not pretending that mac68k can have more than 1 zsc.
2005-01-16 00:32:59 +00:00
chs
7caab7b80d don't require that the aed unit number be zero. 2005-01-16 00:32:16 +00:00
chs
630333b875 handle lack of locators in LKM context differently. 2005-01-16 00:32:03 +00:00
chs
8a9023bfc6 really ansify. 2005-01-15 22:39:09 +00:00
kent
ba29617639 minor KNF 2005-01-15 16:23:03 +00:00
chs
7acd68b14a de-__P, remove register, ansify, b* -> mem*. 2005-01-15 16:00:59 +00:00
kent
93293b9ec7 ansify and KNF 2005-01-15 15:19:51 +00:00
chs
a877481d76 deal with alpha's architectural failing of not being able to operate on
memory quantities smaller than 32 bits.
2005-01-15 15:10:49 +00:00
skrll
4b90045498 Remove local PCI_PRODUCT defines 2005-01-15 13:27:23 +00:00
skrll
fcf73d97d0 Regen. 2005-01-15 13:23:31 +00:00
skrll
26e988358c Add Intel PRO/Wireless LAN 2915ABG Mini-PCI Adapter 2005-01-15 13:21:31 +00:00
skrll
3d4f3981f0 Make this compile 2005-01-15 13:05:45 +00:00
skrll
c0cd9d1765 s/u_int_t/u_int/ in structure member declaration. 2005-01-15 13:03:40 +00:00
kanaoka
79c7579be2 - Make sure D0 state if device has Power Managmet capability.
- Use aprint_*.
 - Change some cosmetic.

XXX not tested.
2005-01-15 12:33:37 +00:00
kanaoka
1c4a548b54 - Use aprint_*.
- Use ANSI decls.
 - Change some cosmetic.
2005-01-15 12:32:09 +00:00
dyoung
7ce33f984e Fix two bugs: frames were bogusly discarded with the complaint
"oversize frame."  Also, some an(4) instances (esp. w/ firmware
version 5+) would not reliably interoperate with some Cisco APs.

Add a sysctl for enabling/disabling debugging.

The problem with Aironet AP interoperability was that the rx frame
'gap' will sometimes be loaded with the 802.2 SNAP header, and
sometimes omitted, when connected to a Cisco AP; an(4) was *always*
discarding the gap.  The problem with "oversize frames" was an
off-by-2 error in the frame-length arithmetic.

While we're here, pad some RIDs to the length that new firmware
really expects.

Thanks to Jim Miller for his valuable bug reports and testing, and
to Dheeraj Reddy for RID-length patches.  Some clues from various
Linux drivers for Cisco/Aironet cards led to the gap fix.
2005-01-15 11:01:46 +00:00
jdolecek
23ddf6b52d regen: Fix Geforce 6800GT entry 2005-01-15 08:40:41 +00:00
jdolecek
cd31b660cb Fix Geforce 6800GT entry 2005-01-15 08:40:07 +00:00
jdolecek
139cc687c0 regen: add bunch of NVIDIA GeForce 6800 devices 2005-01-15 08:38:19 +00:00
jdolecek
9ed9632969 add bunch of GeForce 6800 entries, from Andrew Gillham 2005-01-15 08:37:34 +00:00
jdolecek
8fe1013ea1 regen: use full 'nForce2 Ultra 400' tag for the NFORCE2_400* enties 2005-01-15 08:33:19 +00:00
jdolecek
739bcb85f8 use full 'nForce2 Ultra 400' tag for the NFORCE2_400* enties 2005-01-15 08:32:53 +00:00
manu
5ff6d3d572 Duplicate nested if statement in PIM code (from the OpenBSD tree) 2005-01-15 06:50:47 +00:00
mhitch
3eeb49f1f2 Detection of mouse packet did not work with my mouse. It only sends 6 bytes
instead of the 8 defined by struct dt_locator_msg.  Change the dectection
so we swap the mouse/keyboard addresses only if the packets don't match
what's expected (rather than on every packet).  My mouse now works, and
if a different mouse sends an 8 byte packet, it should also work.
2005-01-15 05:24:30 +00:00
kent
14eae77d98 fix a typo in audiostartp(). This change fixes a problem introduced by
kent-audio1 merger with some audio hardware such as emuxki.
2005-01-15 04:57:18 +00:00
briggs
6f08c43eaa Drop default RX bufs to 2 so that they fit in one page of RAM.
Located by Tim Kelly.  Also discussed on port-macppc with Dave Huang.
XXX -- This driver really needs to be introduced to bus_dma(9).
2005-01-15 02:50:22 +00:00
christos
201de1bdd0 Cast nkmempages to vsize_t before shifting to avoid overflow. Requested
by soda.
XXX: should be pulled up to 2.0.
2005-01-14 17:03:58 +00:00
scw
36a24a9003 Cast away a couple of "assignment makes pointer from integer without a cast"
warnings.
2005-01-14 16:23:32 +00:00
yamt
3068e2f45a don't use uvm_kmapent_alloc for non-intrsafe kernel submaps
(namely exec_map and phys_map) becuase:
- normal vmmpepl is fine for them.
- some of them are tightly sized.  eg. size of exec_map on vax is just NCARGS.

should fix vax boot failure reported by Johnny Billquist on current-users@.
2005-01-14 14:25:40 +00:00
ragge
c6e237dd62 Fix halt/reboot register write syntax. From Johnny Billquist. 2005-01-14 11:47:43 +00:00
dyoung
f7a7696b57 Fix typos in TPPOLL register definition: stop the normal- &
low-priority queues with bit1 and bit0, not bit2 and bit2.
2005-01-14 10:13:55 +00:00
skrll
2cd9c39722 Update the emulation names after recent binutils changes. 2005-01-14 08:17:49 +00:00
itojun
5377005da8 ESP AESCTR got an official protocol number
http://www.iana.org/assignments/isakmp-registry
2005-01-14 04:11:55 +00:00
kent
c9ec679311 ansify and KNF 2005-01-14 03:41:45 +00:00
joff
d3eafb7e4f Dont try freeing bootstrap pages with pool_page_free. Fixes kern/28869 2005-01-14 02:28:54 +00:00
oster
320bcedf91 After walking through desc->dagList nuking entries, make sure
desc->dagList is set to NULL before continuing.  If we don't,
there's a danger that we'll try to re-free these items later.
(This should fix a panic reported to me via private communciation.)
2005-01-14 01:33:15 +00:00
simonb
ab2eace68f Revert the previous change of making topdown VM the default. While
topdown VM works on a MIPS64 bcm1125, it doesn't work on a Cobalt
(rm5231?) and a DEC 5000/260 (r4400).  On both of these init dies and
we panic.
2005-01-14 01:26:22 +00:00
cube
fade05f67f As fd_lastfile might be negative, we can't use the (u_int) cast trick to
compare fd and fdp->fd_lastfile in fdrelease(), so change the test to a
more explicit one.  Spotted by Matt Thomas.

Should fix the panic reported by Matthias Scheler.
2005-01-14 00:25:12 +00:00
kleink
db5b1f2fa2 Pass the interrupt swizzle down to the platforms' fixup functions.
N.B. Only using it on the ulmb60xa for now.
2005-01-13 23:57:04 +00:00
fvdl
4880e83638 If there are no ioapics, don't bother to put things in ioapic mode.
However, always do this otherwise, regardless of the revision.
Remove incorrect comment.
2005-01-13 23:40:01 +00:00
jdolecek
5dc2830936 match NVIDIA nForce2 Ultra 400 IDE and Serial ATA controller; only the IDE
controller actually tested
2005-01-13 20:54:39 +00:00
jdolecek
de76592011 regen: add bunch of NVIDIA nForce2 Ultra 400 chipset devices 2005-01-13 20:52:20 +00:00
jdolecek
87a7c34e2d add bunch of NVIDIA nForce2 Ultra 400 chipset devices 2005-01-13 20:51:49 +00:00
petrov
1b730a5d79 Correct NKMEMPAGES_MIN option name. 2005-01-13 20:16:02 +00:00
drochner
aeae2d9c94 compile tcp_debug.c only if the TCP_DEBUG option is set,
and remove the "#ifdef TCP_DEBUG" around everything
2005-01-13 19:09:40 +00:00
jdolecek
69d096eee2 regen: VIA Velocity 2005-01-13 18:25:49 +00:00
jdolecek
0358345ff3 add VIA Velocity ID 2005-01-13 18:25:19 +00:00
shige
64e3403f1b Add files:
- powerpc/ibm4xx/autoconf.c		(autoconf glue)
	- powerpc/ibm4xx/ibm4xx_autoconf.c	(autoconf for ibm4xx)
	- evbppc/obs405/md_autoconf.c		(machine-dependent autoconf)
2005-01-13 17:20:18 +00:00
shige
8f63deecdb Set machine-dependent obs405_device_register function to md_device_register. 2005-01-13 17:17:53 +00:00
shige
49c3c14437 Add externs:
- md_device_register (func ptr)
	- ibm4xx_device_register (func)
2005-01-13 17:16:33 +00:00
shige
2e87452aa9 Remove device_register, cpu_rootconf functions.
These functions are moved to ibm4xx/autoconf.c.
2005-01-13 17:14:36 +00:00
shige
79354dbad0 Add device_register function for all ibm4xx machine. 2005-01-13 17:12:28 +00:00
shige
786539f27b Add device_register machine-independent-glue. 2005-01-13 17:11:14 +00:00
shige
0a3cce2ad4 Add machine-dependent device_register function. 2005-01-13 17:09:17 +00:00
shige
6751e96490 Call com_opb_cnattach function. 2005-01-13 17:07:24 +00:00
is
a354b7d3c8 Regenerate from GENERIC.in: no more idesc - we're using wdc. 2005-01-13 16:12:35 +00:00
is
fe6a35af59 No more idesc please - we use the wdc driver. 2005-01-13 16:11:38 +00:00
kent
069e72cbb8 ansify and KNF 2005-01-13 15:14:03 +00:00
kent
b85368e36f ansify and KNF 2005-01-13 15:01:27 +00:00
jmmv
c4c2514524 Fix two typos. 2005-01-13 14:51:28 +00:00
kanaoka
3e734f8e90 - Move re_diag() from bus independend code to PCI attachment code.
XXX: I tested cardbus device,but not PCI device.
2005-01-13 14:24:24 +00:00
kanaoka
3126ccfe57 - Add my tested device in a comment.
- Change minimum value of latency timer from 0x20 to 0x40.
2005-01-13 14:13:18 +00:00
yamt
be0c269596 bump to 2.99.14. for uvm_km_free_wakeup. 2005-01-13 11:53:34 +00:00
yamt
22099ab744 in uvm_unmap_remove, always wakeup va waiters if any.
uvm_km_free_wakeup is now a synonym of uvm_km_free.
2005-01-13 11:50:32 +00:00
yamt
48355cdf13 kmeminit_nkmempages: don't limit the size of kmem_map to physmem/4
because, while there's little benefit to do so, it easily causes
"out of space in kmem_map" panic on machines with small memory.
2005-01-13 11:49:09 +00:00
simonb
11152f29d3 More KNF nits. 2005-01-13 00:48:01 +00:00
fvdl
ae8c299425 * Wrap IPI sending in splclock(), since an interrupt at IPL_CLOCK or lower
may cause IPIs.
* Make broadcast IPIs go through x86_ipi() as well, so that they wait for
  the APIC to be ready too.

From Stephan Uphoff.
2005-01-13 00:08:22 +00:00
christos
53aa30e2eb s/vp->v_uobj.vmobjlock/vp->v_interlock/. This is the last instance in kern/*.c 2005-01-12 21:51:52 +00:00
cube
8ec7c6764b fd_lastfile should be -1 when there are no opened file descriptors.
Hence, make find_last_set return -1 in such situation, and initialize it
such.  Otherwise, with 0 meaning two things, it confused the F_CLOSEM
fcntl which could end up looping indifintely (PR#28929 by Brian Marcotte).

However, this change enlightens another bug in fdcopy(), where more entries
than needed were cleared in the new file descriptor table, so the memset()
call there is fixed too.

Analyzed with the help of Greg Oster.
2005-01-12 20:41:45 +00:00
drochner
9f4d33cf9a On my laptop, the SMI handler for the TCO interrupt appearently
re-tickles the watchdog, keeping the system from rebooting.
So enable the SMI for TCO only if the hardware reset is not available,
as a last resort.
2005-01-12 17:45:58 +00:00
kent
d69abf4ca0 - make this compile
- style fixes
2005-01-12 17:43:19 +00:00
drochner
3ad43282d2 apply an "& WDOG_MODE_MASK" so that user mode watchdogs started with "-A"
are terminated properly
2005-01-12 16:14:35 +00:00
kent
986f217c29 remove empty auixp_open() and auixp_close(). They are optional.
style fixes
* Don't associate a name with the types
* The function type must be declared on a line by itself
  preceding the function.
* DO NOT initialize variables in the declarations.
* No parentheses are needed around the return value.
2005-01-12 15:54:34 +00:00
yamt
e4666bf785 don't reserve (uvm_mapent_reserve) entries for malloc/pool backends
because it isn't necessary or safe.
reported and tested by Denis Lagno.  PR/28897.
2005-01-12 09:34:35 +00:00
reinoud
5c590de03d Update copyright messages 2005-01-12 00:28:03 +00:00
reinoud
9695bde219 Add auixp(4) driver for the architectures that are known to have the ATI
IXP chipset.
2005-01-12 00:18:16 +00:00
reinoud
df06ca85e4 Initial commit of auixp(4) driver. It's a driver for the audio part of ATI
IXP-200 and family motherboard chips. Its functional for both recording and
playback.

Note that quadraphonic and Dolby 5.1 audio are not tested by me but ought
to work fine. I can set the number of channels etc. OK but i can't listen
to the result. Any feedback on this performance would be greatly
apreciated.
2005-01-12 00:05:43 +00:00
skrll
28528764d0 Disable the debug stuff 2005-01-11 18:54:18 +00:00
skrll
70f6d0ab0f NetBSD RCSID 2005-01-11 18:49:05 +00:00
skrll
e2b108cb16 Add iwi(4). 2005-01-11 18:41:59 +00:00
skrll
60b4bf1e8d iwi(4) - Intel PRO/Wireless 2200AG/2915ABG driver.
Written by Damien Bergamini, from http://damien.bergamini.free.fr/ipw/

Ad-hoc mode and roaming are not fully implemented yet.
2005-01-11 18:24:24 +00:00
he
d305062a73 In the __lint__ version of va_arg(), apply the cast the user specified.
Fixes build problem; vfprintf.c from libc fails to lint otherwise.
2005-01-11 11:36:27 +00:00
simonb
f17401da54 Add isa_irq.o and spl.o to the list of files that depend on assym.h so
that "make -j<bignum>" works without a "make depend" beforehand.
2005-01-11 08:41:07 +00:00
simonb
f645983fc7 Switch from intrcnt interrupt account to event counters. 2005-01-11 08:05:13 +00:00
imp
f2bd93408a Merge from FreeBSD:
sc_child is only used on NetBSD and OpenBSD, ifdef appropriately
FreeBSD revisions:
	ehcivar.h	1.8
	ohcivar.h	1.39
	uhicvar.h	1.39
2005-01-11 07:45:34 +00:00
simonb
3b6024ad24 ANSIfy. 2005-01-11 07:01:38 +00:00
simonb
61b633d474 Now that countless UVM bugs have been fixed, enable "topdown" memory
allocation by default.
2005-01-11 05:42:17 +00:00
kent
5610969544 ansify and KNF 2005-01-11 04:23:14 +00:00
briggs
9750b8741d In epshutdown(), do not attempt to disable the interface when stopping it
because we're about to write to it again (with a global reset).  Disable
the interface explicitly after the reset is written.
2005-01-11 04:16:27 +00:00
kent
dc63d1767d fix compilation errors 2005-01-11 03:45:17 +00:00
chs
67402a485f enable powersave mode on 7450 and family.
also, the HID0_DOZE bit in this context doesn't mean "doze",
it's actually "enable extra BATs".  add an alias for this bit
and use it as appropriate.
2005-01-11 02:09:54 +00:00
chs
cf6b9650a5 remove leftover debug printf. 2005-01-11 02:04:01 +00:00
chs
320acb3f66 assert that PSL_EE is on when do_pending_int() is called
(since things don't work too well if it's not).
2005-01-11 02:02:41 +00:00
uwe
c1574ed6c1 Add keyboard layout for Jornada 680/690 Spanish (ABE).
From Alfonso Fernandez.
2005-01-11 01:54:20 +00:00
uwe
080b48020c Add KB_ES | KB_MACHDEP placeholder for Jornada 680/690 Spanish (ABE). 2005-01-11 01:39:36 +00:00
itojun
4db58ab415 fixed a unexpected addr/port matching failure in SA management
FreeBSD-PR: kern/72393
2005-01-11 01:30:17 +00:00
uwe
e9fd18895b Regen for Compaq Aero 8000 and Jornada 680/690 with Spanish keyboard. 2005-01-11 01:05:32 +00:00
uwe
2a292865c4 Add Compaq Aero 8000 (requested by Linux folks).
Add Jornada 680/690 with Spanish keyboard.
2005-01-11 01:03:42 +00:00
joff
b6b2f0d2df Use hd44780var.h instead of hd44780_subr.h 2005-01-11 00:59:06 +00:00
joff
e1191d101f Replace hd44780_subr.h to hd44780var.h and install to userland. 2005-01-11 00:57:56 +00:00
mycroft
7f1fe4e81f Rearrange some code slightly to avoid uninitialized variable warnings. 2005-01-11 00:19:36 +00:00
joff
5b4ec09e40 Add GPIO addresses 2005-01-10 23:17:53 +00:00
kent
8874b02756 2.99.13 (audio in-kernel API changes) 2005-01-10 22:08:55 +00:00
kent
23b5d91433 merge kent-audio1 branch, which introduces audio filter pipeline to the MI
audio framework


Summary of changes:

* struct audio_params
  - remove sw_code, factor, factor_denom, hw_sample_rate,
hw_encoding ,hw_precision, and hw_channels.  Conversion information
is conveyed by stream_filter_list_t.
  - change the type of sample_rate: u_long -> u_int
  - add `validbits,' which represents the valid data size in
precision bits.  It is required in order to distinguish 24/32bit
from 24/24bit or 32/32bit.

* audio_hw_if
 - add two parameters to set_params()
	stream_filter_list_t *pfil, stream_filter_list *rfil
   A HW driver should set filter recipes for requested formats
 - constify audio_params parameters of trigger_output() and
trigger_input().  They represent audio formats for the hardware.
 - make open() and close() optional
 - add int (AUMODE_PLAY or AUMODE_RECORD) and audio_params_t parameters
 to round_blocksize()

* sw_code is replaced with stream_filter_t.
  stream_filer_t converts audio data in an input buffer and writes
into another output buffer unlike sw_code, which converts data in
single buffer.
  converters in dev/auconv.c, dev/mulaw.c, dev/aurateconv.c,
dev/tc/bba.c, dev/ic/msm6258.c, and arch/arm/iomd/vidcaudio.c are
reimplemented as stream_filter_t

* MI audio
 - audiosetinfo() builds filter pipelines from stream_filter_list_t
filled by audio_hw_if::set_params()
 - audiosetinfo() returns with EINVAL if mmapped and set_params()
requests filters
 - audio_write(), audio_pint(), and audio_rint() invoke a filter
pipeline.
 - ioctl() for FIONREAD, AUDIO_WSEEK, AUDIO_GETIOFFS,
AUDIO_GETOOFFS, and audio_prinfo::{seek,samples} for
AUDIO_GETINFO handle values for a buffer nearest to userland.

* add `struct device *' parameter to ac97_attach()

* all of audio HW drivers follow audio_hw_if and ac97 changes
2005-01-10 22:01:36 +00:00
chs
a1dc78ab6b use a global variable to ensure that only one instance is configured
rather than requiring that its unit number be zero.
simplify by not pretending that nexts can have more than 1 zsc.
2005-01-10 17:07:09 +00:00
chs
da79fa5c17 de-__P, remove register, ansify. 2005-01-10 17:01:55 +00:00
chs
84f5997a1a really remove register. 2005-01-10 17:01:22 +00:00
chs
69ef38f074 de-__P, remove register, ansify, other cleanup. 2005-01-10 16:47:48 +00:00
chs
d65ac815a8 use a global variable to ensure that only one instance is configured
rather than requiring that its unit number be zero.
simplify by not pretending that powermacs can have more than 1 zsc.
2005-01-10 16:38:06 +00:00
chs
35cacfdeb8 de-__P, remove register, ansify. 2005-01-10 16:34:46 +00:00
tls
abcbeb46d9 Users have observed that the amount of memory used by the metadata cache
can in some situations exceed the high-water mark, and stay there once it
gets there.  Adjust the canrelease function so that it will immediately
bring us back down to the high-water mark in this situation.

How can this happen at all?  Consider a machine with two filesystems, one
with a much larger blocksize than the other.  If the small-block filesystem
is very busy, growing the cache up to the high-water mark, and then the
large-block filesystem becomes busy, buffers will be recycled (since we
are at the high-water mark) but _grow each time they're recycled_.  Once
we're above the high-water mark, the canrelease call in allocbuf (without
this change) doesn't shrink us back down below it; so things get worse and
worse.
2005-01-10 15:29:50 +00:00
matt
b046d5ecf9 Now that countless UVM bugs have been fixed, enable "topdown" memory
allocation by default.
2005-01-10 05:42:09 +00:00
mycroft
87e784e1de Now that countless UVM bugs have been fixed, enable "topdown" memory
allocation by default.
2005-01-10 05:34:51 +00:00
mhitch
248d777d24 Fix Maxine keyboard and mouse ioctl routines to return EPASSTHROUGH for
unrecognized commands so they can be passed to other handlers.
2005-01-10 04:43:34 +00:00
mhitch
4deb82db56 Maxine mouse buttons were being mapped incorrectly (old dtop.c code mapped
them to serial mouse buttons, which were then mapped into events to pass
to the X server).
Also fix bug in mouse motion - putting 2 unsigned bytes into an integer
resulted in a 16-bit unsigned value, so negative mouse motion didn't work.
2005-01-10 04:40:05 +00:00
lukem
4ae6a6d6f4 Support -DNOINET6 to disable USE_INET6 (a la the FreeBSD section earlier) 2005-01-10 02:10:47 +00:00
smb
ddd2ade252 Add a software watchdog timer facility. Because this slightly
changes the "tickle" model of wdogctl(8), it was modified as well;
while I was in there, I cleaned up the argument parsing.

The code was reviewed by simonb@.
2005-01-09 22:51:32 +00:00
joff
fdb2df8f5f enable pcic(9) PCMCIA controllers in default kernel 2005-01-09 21:44:32 +00:00
joff
6b75e7b0f9 Allow for pcic(9) attachments on the ISA bus 2005-01-09 21:40:02 +00:00
joff
0686f5514c call isa_bs_mallocok() right before ISA bus attachment 2005-01-09 21:35:51 +00:00
joff
453e7edc70 Implement extent(9) based management of ISA io/mem so pcic(9) has
a chance of working.
2005-01-09 21:32:08 +00:00
christos
4bfe82cbac Flip the order of two lines I mixed. Thanks to wiz for noticing. 2005-01-09 20:25:26 +00:00
christos
870890917c now takes an optional filename. 2005-01-09 19:23:26 +00:00
christos
82ee9647b8 Allow PT_DUMPCORE to specify the core filename. 2005-01-09 19:22:55 +00:00
tsutsui
e34a3b7f08 Small optimization in vmapbuf()/vunmapbuf().
BTW, should we also pass 'VM_PROT_READ|VM_PROT_WRITE' to flags
with PMAP_WIRED for pmap_enter() in vmapbuf()?
2005-01-09 17:41:34 +00:00
tsutsui
a9b3f31984 Some cosmetics:
- remove __P()
- use ansi decls
- u_int8_t, u_char -> uint8_t
- use macro for debug printfs
- some KNF
2005-01-09 16:59:41 +00:00
chs
8975a0856f adjust the UBC mapping code to support non-vnode uvm_objects.
this means we can no longer look at the vnode size to determine how many
pages to request in a fault, which is good since for NFS the size can change
out from under us on the server anyway.  there's also a new flag UBC_UNMAP
for ubc_release(), so that the file system code can make the decision about
whether to cache mappings for files being used as executables.
2005-01-09 16:42:43 +00:00
martin
5689de1472 Bugfixes and acceleration support.
From Michael Lorenz.
2005-01-09 16:29:20 +00:00
joff
5f20950e38 o reversed sense of RS in writereg
o attempt HD44780 reset on open if LCD not detected at bootup
o skip everything if sc_dev_ok == 0 in writereg/readreg
2005-01-09 15:48:51 +00:00
joff
838c742991 Handle (i.e. don't lock up the kernel in hd44780_busy_wait) the case of the
LCD not being there.
2005-01-09 15:43:56 +00:00
tsutsui
8d65a2e17f - Switch to wscons(4) with MI vga(4), pckbc(4) and pms(4).
- Reorganize console initialization code like i386 rather than cninit().
Note old pccons/opms and ofcons support still works.

XXX Xserver is not tested because XF86_4 doesn't have support
XXX for IGS CyberPro2010 on shark. (yet?)
2005-01-09 15:39:59 +00:00
tsutsui
7da0e84338 - Adapt to vga_common_attach() API changes.
- Add more VGA initialization code to vga_ofbus_cnattach() from pccons.c.
- Export vga_ofbus_cnattach() prototype for consinit() ops.
2005-01-09 15:29:27 +00:00
tsutsui
01c812cc7b Add bus_space_copy_region_2() op, which is required by MI vga(4),
from sys/arch/arm/arm/bus_space_asm_generic.S.

XXX: isa_io_asm.S and bus_space_asm_generic.S is mostly identical.
2005-01-09 15:26:19 +00:00
kanaoka
dcccc9d794 sys/dev/ic/rtl8169.c:
- re_attach(): Use bus_dma* directly instead of calling re_alloc().
 - re_attach(): Free bus_dma* resources if attach fails.
 - re_detach(): Free bus_dma* resources.
 - re_newbuf(): Remove unnecessary error check.

sys/dev/ic/rtl81x9reg.h:
 - Define RTK_NTXSEGS.

sys/dev/ic/rtl81x9var.h:
 - Add new members to struct rtk_list_data for bus_dma*.
2005-01-09 12:25:25 +00:00
yamt
d502f705e1 ifioctl: don't use super user priviledge unless it's needed. 2005-01-09 12:18:46 +00:00
kanaoka
6488f7bcc4 - Use aprint_*.
- Remove unnecesarry code.
 - Changes some cosmetic.
2005-01-09 12:15:36 +00:00
mycroft
e72fc6717e Whoops -- move the location of the VOP_OPEN()/VOP_CLOSE(), et al, from
foo_mountfs() to foo_mount(), to match the new mountroot API.
Also, for ext2fs and lfs, copy some restructuring from ffs to allow changing
file system parameters without specifying the device name.
(ntfs could use some more work.)
2005-01-09 09:27:17 +00:00