martin
d65cbab3ff
Connect the front panel power button on psycho based machines to sysmon's
...
/dev/power.
XXX - due to the way interrupt handling is structured we have no easy
way to defer clearing the button interrupt until the sysmon callback
has happened and the event is dispatched. We clear it imediately on
return from the interrupt handler. This means we get an interrupt storm
until the button is released, and then start to handle it.
This needs to be fixed! (But with the default application for the power
button does not make a user visible difference.)
2003-04-21 12:14:19 +00:00
itojun
afdd63b90b
remove redundant adjustment of m->m_pkthdr.len
2003-04-21 08:14:45 +00:00
itojun
cb30d7ce0b
correct arg to m_pullup (need to count IP header size as well)
2003-04-21 07:02:31 +00:00
itojun
a81c148373
correct (false) assumptions on mbuf chain. not sure if it really helps, but
...
anyways, it is necessary to perform m_pullup.
2003-04-21 06:52:47 +00:00
thorpej
215580f2da
Defflag XSCALE_CACHE_READ_WRITE_ALLOCATE and XSCALE_NO_COALESCE_WRITES.
2003-04-21 05:36:14 +00:00
thorpej
0f16fc12a0
#ifdef, not #if, for XSCALE_NO_COALESCE_WRITES.
2003-04-21 04:33:30 +00:00
thorpej
9361d039a1
Add XSCALE_CACHE_READ_WRITE_ALLOCATE.
2003-04-21 04:02:04 +00:00
gson
c8da8f2398
Ignore input when the port is not open. This change is functionally
...
identical to the patch in kern/6502 (which is hereby fixed), but
modelled after the corresponding fix to the 8530 driver in
z8530tty.c revision 1.60 to maintain consistency with that driver.
2003-04-21 03:43:18 +00:00
fvdl
bee66ff5b4
Add commented-out ahd driver.
2003-04-21 00:17:46 +00:00
fvdl
1aca5bda05
ahd, driver for Adaptec 790x U320 controllers. Originally by Justin Gibbs
...
for FreeBSD, ported to NetBSD by Pascal Renauld, Network Storage Solutions,
Inc, plus a bunch of changes by me.
This driver is as yet untested in this final form, it will be added
to config files when it has been tested.
2003-04-21 00:14:52 +00:00
christos
f1726c271b
Override LDBL_MIN
2003-04-21 00:08:24 +00:00
christos
68e25dece2
no __i386__ here. charles explained that the value is correct.
2003-04-21 00:07:25 +00:00
fvdl
ee7b6f07aa
One more FreeBSD compat define.
2003-04-20 23:43:04 +00:00
fvdl
d268a0e37f
Add register definitions for the PCI-X capability.
2003-04-20 22:53:56 +00:00
bjh21
2456c80578
If the format string ends with "%" or "%l", print those characters, just
...
as we would if they were part of an invalid conversion specification.
Code-size neutral on ARM; not tested elsewhere.
2003-04-20 22:23:59 +00:00
christos
4a2f0334d4
PR/6362: der Mouse: /dev/speaker octave-tracking goes out of range
2003-04-20 22:02:46 +00:00
scw
9143cf9a96
If the RTC time is > 50 days out, don't use it at all, on the assumption
...
that there is no battery backup (as is the case on the Cayman).
2003-04-20 21:26:46 +00:00
fvdl
d96d9c4be4
Pick the right channel in the reset ioctl.
2003-04-20 21:25:59 +00:00
scw
e290aaf899
Fix the SDRAM size in the 'fake' bootparams. 8MB != 128MB.
2003-04-20 21:18:50 +00:00
thorpej
9884510327
Add a driver for the reset button on the ADI BECC.
2003-04-20 20:50:49 +00:00
thorpej
4bbda47b54
Add a "reset button" type.
2003-04-20 20:48:27 +00:00
provos
14ea3a1c62
better performance for fast path; simplify for future lwp support.
2003-04-20 20:30:34 +00:00
thorpej
9dd2908b35
Use sysmon_taskq.
2003-04-20 20:21:29 +00:00
thorpej
d14efd22d1
Generic "task queue" for sysmon back-ends. This provides a thread
...
context for callbacks that require it in order to handle sysmon-related
events.
Adapted from the "OsdSchedule" bits of the ACPI code.
2003-04-20 20:20:35 +00:00
fvdl
b30a81c90c
Resurrect change from previous ahc driver version: reset channel (unless
...
configured not to in the BIOS) on first access.
2003-04-20 19:49:45 +00:00
bjh21
94c13ff2cd
ANSIfy, assume __STDC__, un-__P, KNF.
...
Generated code unchanged.
2003-04-20 19:31:29 +00:00
fvdl
c2a2dc04eb
Fix ahc_print_registers some more.
2003-04-20 18:57:41 +00:00
bjh21
6a8eedfd87
KNF doesn't apply to Reinoud -- back out my last two changes.
2003-04-20 18:50:38 +00:00
fvdl
ed7c318180
Fix ahc_print_register up.
2003-04-20 18:31:16 +00:00
bjh21
6da931ff0d
Cast KERNENTRY into a char * before doing arithmetic on it, so we don't end
...
up trying to cast a 64-bit integer into a pointer, which GCC warns about.
2003-04-20 18:17:07 +00:00
thorpej
14acc892ca
Fix a typo that prevented the large inbound PCI memory window from
...
being programmed (guess RedBoot allowed us to get lucky).
2003-04-20 17:17:01 +00:00
fvdl
6886cf85b0
Initialize name and dma tag.
2003-04-20 16:54:23 +00:00
martin
d313e6d92e
Add sysmon device.
2003-04-20 16:53:46 +00:00
fvdl
9af6ac1fc3
Initialize name and dma tag.
2003-04-20 16:52:40 +00:00
martin
c1a5cc810d
The sysmon device is used for sysmon_power too.
2003-04-20 16:51:35 +00:00
fvdl
da526ebf96
Initialize ahc->name. From Izumi Tsutsui.
...
Set ahc->parent_dmat correctly.
2003-04-20 16:50:13 +00:00
thorpej
4b39c84472
Reinstate one change from rev. 1.12, but differently. Preload r2 with
...
0 before frobbing the control register, and use r2 in the ARMv4 TLB
flush.
2003-04-20 16:21:40 +00:00
fvdl
c620a2fd66
Fix some AHC_DEBUG printf cases, and undef AHC_DEBUG.
2003-04-20 16:04:54 +00:00
bjh21
b196917760
KNF
2003-04-20 15:57:12 +00:00
fvdl
4d6d3fb37b
Call ahc_softc_init in attach function.
2003-04-20 15:48:25 +00:00
thorpej
b534f5853c
Back out previous. There were several problems with the patch that
...
was checked in:
* It was not actually disabling the MMU, and so jumping to the
reset vector would happily cause a panic(), since it would be
the kernel's reset vector, not the ROM's.
* In the event the system was using high vectors, VECRELOC was not
getting cleared, which has the potential to wreak havoc when re-entering
the ROM.
* It was totally broken for CPUs < ARMv4; you still need to disable
the MMU on those, just need to skip the ARMv4 TLB flush.
* The code that was checked in would only work if the kernel is mapped
VA==PA. For systems where the kernel is NOT mapped VA==PA, you only
get the prefetch depth # of insns (2) after the MMU is turned off before
you have fix the PC.
Backing out the change fixes rebooting on several evbarm platforms.
2003-04-20 15:42:51 +00:00
fvdl
c8a7cfc565
Actually define ahc_htole and reverse macros.
2003-04-20 15:32:10 +00:00
fvdl
6288ca0b93
Delay ahc_free until after shutdown hook disestablish.
2003-04-20 15:31:50 +00:00
bjh21
610cdc7b39
Create a symlink to sys/arch/arm/include alongside the one to
...
sys/arch/${MACHINE}/include.
2003-04-20 14:37:59 +00:00
manu
cbfe387fcc
swapped the words in lseek offset reassembly (that was was confused-endian)
...
Removed useless include that came from a copy/paste.
2003-04-20 14:36:05 +00:00
bjh21
ef40902514
80 columns, dammit!
2003-04-20 14:21:13 +00:00
bjh21
2020a72f18
Use <sys/float_ieee.h> rather than <sys/math_ieee.h>, which doesn't exist.
2003-04-20 12:57:43 +00:00
bjh21
b05cf42fce
Use %lu format and (u_long) cast when printing size_t.
2003-04-20 12:54:05 +00:00
fvdl
4fe822c162
Correct typo in previous.
2003-04-20 12:05:42 +00:00
fvdl
3bc3f3793f
Add FreeBSD compat define for PPR_PCOM
2003-04-20 11:53:28 +00:00
fvdl
7ae27ded66
Regen.
2003-04-20 11:20:51 +00:00
fvdl
21e3127716
Sync with FreeBSD rev. 1.10: correct default precompensation value for RevA
...
hardware.
2003-04-20 11:19:33 +00:00
fvdl
26813b6545
Get rid of AHC_LUN_WILDCARD, making differences with FreeBSD smaller.
2003-04-20 11:17:20 +00:00
yamt
9cb95972fa
add simple_locks that are missed in the previous.
2003-04-20 07:06:33 +00:00
christos
62d7b4df25
PR/5458: Andrew Brown: acct(2) bug accounting to files marked sappnd
2003-04-20 03:20:18 +00:00
christos
962f5ffade
try to get this to work for both endian machines.
2003-04-20 00:32:16 +00:00
nakayama
625feacd44
Change a fixup of interrupt number a bit.
2003-04-20 00:29:37 +00:00
manu
1368d826d9
Regen
2003-04-20 00:10:20 +00:00
manu
beca0eff14
Fixed an ABI bug in lseek: NetBSD pads the syscallarg structure because of
...
the off_t argument, Darwin does not. In order to get the off_t argument
going through our syscall machinery, we declare it as two long arguments,
and we reassemble it in darwin_sys_lseek.
2003-04-20 00:09:41 +00:00
christos
9a119fd83b
PR/21236: Simon Hitzemann: Fix missing space in error format. While I am
...
there make a single copy of the error string instead of 6 and share it.
2003-04-19 23:37:26 +00:00
christos
52be04c4cc
PR/17738: Matthias Drochner, PR/21230: Onno van der Linden: vt100 wscons
...
crashes restoring cursor. Fixed by adding a flag as suggested.
2003-04-19 23:28:46 +00:00
christos
dd094b9993
Add a float_ieee.h file for all IEEE compliant archs to include.
2003-04-19 23:06:33 +00:00
christos
a2dfb1b570
PR/3012: Greg A. Woods: Write all float.h files [except the vax of course]
...
in terms of float_ieee.h
2003-04-19 23:05:28 +00:00
christos
a94b10edf1
PR/2996: Greg Oster: Fix comment to match reality. Names are padded to
...
four bytes, but the bytes are not null.
2003-04-19 22:02:39 +00:00
thorpej
fc08e6bd7a
Adapt to ARM32_PMAP_NEW.
2003-04-19 21:52:03 +00:00
christos
59833f145c
PR/2931: Eric Beltensen: Move boolean_t and TRUE/FALSE from uvm_param.h to
...
types.h
2003-04-19 21:42:46 +00:00
manu
aa5f0948ad
Improved bahvior for map_fd. When Darin uses findspace = 0, this seems to
...
request a mapping at fixed address, overlaying previously existing mappings.
The overlay is done by unmapping (sys_munmap) before mapping at fixed
location. This makes XDarwin able to link and run.
2003-04-19 21:41:15 +00:00
christos
4fb408f950
PR/2845: Mike Schwartz: Allow some #defines to be tuned by kernel options
...
by protecting them via #ifndef OPTIONNAME
2003-04-19 21:30:29 +00:00
tsutsui
2ec93e87e3
Remove extra \n's in boot message.
2003-04-19 21:30:14 +00:00
christos
9b6eb382c2
PR/2352: Tor Egge: Add sysctl to get uid of connected socket.
2003-04-19 20:58:35 +00:00
bjh21
6141355bbc
Fix format string mismatch.
2003-04-19 19:55:07 +00:00
fvdl
2d41d30fa5
NetBSD RCS Ids.
2003-04-19 19:38:21 +00:00
fvdl
349233c2db
Adapt to new backend. Needs testing.
2003-04-19 19:36:20 +00:00
fvdl
0d9c871cee
Adapt to newer backend. Needs testing.
2003-04-19 19:35:34 +00:00
fvdl
79bdc751aa
Fix this to compile with the new driver. Needs testing.
2003-04-19 19:35:09 +00:00
fvdl
ec7141e045
Newer ahc driver, port from Justin Gibbs' driver in FreeBSD. Ported by
...
Pascal Renauld at Network Storage Solutions, Inc, with some changes
by me.
2003-04-19 19:34:23 +00:00
fvdl
ccadc2cbd3
Newer adaptec 7xxx driver. Written by Justin Gibbs for FreeBSD. Ported to
...
NetBSD by Pascal Renauld at Network Storage Solutions, Inc.
Some modifications by me.
2003-04-19 19:33:29 +00:00
fvdl
8a26def233
Add ahd at pci (to be added later).
2003-04-19 19:30:07 +00:00
fvdl
85ef2607ca
Changes for newer ahc driver, and ahd driver (the latter is a placeholder
...
until it's actually added, soon).
2003-04-19 19:29:10 +00:00
fvdl
6fcbec2b8d
Generated register/sequencer code include files for the ahc and ahd
...
drivers.
2003-04-19 19:27:50 +00:00
fvdl
7e92a81099
Newer aic sequencer assembler. From FreeBSD, written by Justin Gibbs.
...
Ported to NetBSD by Pascal Renauld at Network Storage Solutions, Inc.
Some Makefile changes by me.
The 79xx code isn't yet used, driver for that to follow shortly.
2003-04-19 19:26:10 +00:00
fvdl
40565542e4
Add NetBSD RCS id.
2003-04-19 19:21:35 +00:00
fvdl
a434795392
Add a PCAP_NODT quirk. I have two older Quantum Atlas drives that work
...
fine at U2W, but barf at U160, with different controllers. Unfortunately
sometimes just being initialized at U160 does the trick, so setting them
to lower speed in the BIOS may also be needed.
2003-04-19 19:16:06 +00:00
fvdl
016a1095a9
A device should always respond to inquiry or test unit ready; disable
...
retries for these during discovery. From Pascal Renauld at Network
Storage Solutions, Inc
2003-04-19 19:12:59 +00:00
fvdl
ea399d0682
Add MSG_QAS_REQUEST definition.
2003-04-19 19:11:13 +00:00
fvdl
76a06d99f3
IU pkt/task definitions include file. From FreeBSD.
2003-04-19 19:10:25 +00:00
tsutsui
14e6518ceb
Fix typo, and TAB/space cosmetics.
2003-04-19 16:43:59 +00:00
tsutsui
7b4af0e724
Sync with reality. (it's my development machine)
2003-04-19 16:37:21 +00:00
tsutsui
cc1ee25971
Disable options DIAGNOSTIC.
2003-04-19 16:35:03 +00:00
tsutsui
9878be8f8d
Enable options NTP, DDB and SCSIVERBOSE.
2003-04-19 16:22:51 +00:00
tron
6d26862b28
Fix for ACPI poweroff problem provided by Takayoshi Kochi. This resolves
...
PR kern/20614 by myself.
2003-04-19 16:09:16 +00:00
christos
4bf8b7765e
Put back bits of pr 9286 that got lost. Thanks to Onno van der Linden for
...
pointing this.
2003-04-19 15:47:45 +00:00
tsutsui
c069308048
TAB/space cleanup.
2003-04-19 14:56:05 +00:00
tsutsui
7fd64edc04
- remove obsolete #if 0'ed out code
...
- remove some leading/trailing spaces
2003-04-19 14:44:39 +00:00
bjh21
0b09c8fd02
Include <machine/pio.h> for in8()/out8().
2003-04-19 13:58:38 +00:00
bjh21
4511532aa8
Add NULL cn_halt and cn_flush members to ofppc_bootcons.
2003-04-19 13:56:04 +00:00
tsutsui
2d4bb67d40
Fix unexpected fallthrough in switch statement.
...
This should fix boot failure of the INSTALL kernel
on news3400 with serial console.
2003-04-19 12:33:35 +00:00
scw
5c0b008779
Don't use ARM32_NEW_VM_LAYOUT or initarm_common() for now. It's not
...
quite ready for prime-time on evbarm.
2003-04-19 08:18:12 +00:00
tsutsui
fd46661ecf
Remove definitions of SIZE and STRIP which should be defined elsewhere.
2003-04-19 07:34:15 +00:00
thorpej
ec678aa9cd
Use L1_S_MAPPABLE_P() and L2_L_MAPPABLE_P().
2003-04-18 23:46:12 +00:00