haya
0daef8c89f
Regenerate for pcidevs 1.529 and 1.530 changes.
2003-04-28 08:33:48 +00:00
haya
343fa8e595
Add some Texas Instruments' CardBus bridges. Device ID are taken from
...
data sheets provided by TI web site and 'PCI Vendor and Device list'
web page <http://www.yourvote.com/pci >.
2003-04-28 08:29:52 +00:00
haya
67d0b87c1f
Add some O2Micro CardBus bridges regarding PR/20084. Device ID are
...
taken from FreeBSD and cross-checked by the web page 'PCI Vendor and
Device list' <http://www.yourvote.com/pci >
2003-04-28 08:17:30 +00:00
nakayama
1e411d7027
Make DMA mode works on Promise Ultra66/100 with 48-bit LBA drives.
...
Ok'ed by bouyer in tech-kern@netbsd.org .
2003-04-28 05:20:29 +00:00
tsutsui
4661d01ee2
options MIPS3_L2CACHE_PRESENT was gone long ago.
2003-04-28 05:03:44 +00:00
briggs
e2391a87b6
Add a rudimentary 'trap to kgdb' command if KGDB is defined. This allows
...
systems with only one serial port for console, etc., to have at least some
basic access to remote-kgdb-over-serial, even if it is a bit awkward.
2003-04-28 02:49:54 +00:00
briggs
742c5dbd3a
Allow the console to be used for kgdb if both DDB and KGDB are defined.
2003-04-28 02:46:09 +00:00
briggs
ed751b6340
Attach com to kgdb if both KGDB and com are defined.
2003-04-28 01:56:44 +00:00
briggs
a2f6e1f09a
Add arm32 machine-specific remote kgdb support. Largely
...
from PR port-arm/15530 by bsh@, but with some updates from
me, including a fresh arm32/kgdb_machdep.c--ported from pc532.
2003-04-28 01:54:49 +00:00
briggs
1f20c98b90
Clean up the output a little and print the lwp pointer.
2003-04-28 01:43:48 +00:00
thorpej
7de2c299a2
Don't define APTE_BASE if ARM32_PMAP_NEW is defined; the new pmap
...
doesn't use it.
2003-04-28 01:34:28 +00:00
fvdl
a4d65735ea
Fix *LONGMAX values.
2003-04-27 22:33:49 +00:00
tsutsui
a29ca71393
KNF and cosmetics.
2003-04-27 17:13:01 +00:00
tsutsui
8e19dfb2ae
Remove register declarations.
2003-04-27 17:05:55 +00:00
bouyer
a704b24037
Fix typo.
2003-04-27 14:33:20 +00:00
bouyer
07e96ff3d7
Acceptable cache operations are r and rw, not none and w
...
Properly initialise the timeout value.
2003-04-27 14:27:36 +00:00
tsutsui
6147df324d
Add some entries added to GENERIC recently.
2003-04-27 13:31:11 +00:00
tsutsui
9f306990dd
Sync with GENERIC:
...
- add #options BRIDGE_IPF
- add pseudo-device ksyms
2003-04-27 13:22:38 +00:00
tsutsui
97adf01fed
Fix pasto.
2003-04-27 11:33:36 +00:00
tron
e71f089777
Remove two unused variable to fix a build problem.
2003-04-27 11:12:14 +00:00
ragge
1989d659bb
Preserve the symbol table in the LKM || KSYMS cases also.
2003-04-27 10:42:48 +00:00
yamt
b4d5e11ffe
fix a comment.
2003-04-27 06:47:45 +00:00
yamt
c2b802ff24
fix b_interlock lock/unlock mismatches.
2003-04-27 06:46:38 +00:00
perseant
b691ba8a71
Don't change update time on block write; lets e.g. "tar xp" work properly.
2003-04-27 04:18:29 +00:00
uwe
3d2f28b075
When doing bit blit, set the flow direction based on the condition_a flag.
2003-04-27 04:11:32 +00:00
wiz
c42e1fac66
Management, not managment. Mostly from jmc@openbsd.
2003-04-26 22:07:12 +00:00
chris
eff844e738
Add support for ARM32_PMAP_NEW. Note that due to changes to how the l1
...
table is handled the podulebus mappings are now done at initarm, rather
than in the podulebus code. While I'm not happy with this it does work,
perhaps there's a better way to do it?
Not enableing by default I've not got enough cards to check the podulebus
change hasn't broken something (works with my rapide and with my network
podule)
2003-04-26 19:35:02 +00:00
fvdl
176ac62c3e
Skip sym space if ksyms or LKMs are included, too.
2003-04-26 19:34:45 +00:00
fvdl
043f21d9ea
x86_64 -> amd64
2003-04-26 19:14:17 +00:00
tsutsui
3f61e596f5
Remove one more register declaration.
2003-04-26 19:13:53 +00:00
fvdl
caaaf66e32
x86_64 -> amd64
2003-04-26 19:13:37 +00:00
tsutsui
20601f7173
- Declare common functions in cpu.h
...
- Rename some machine dependent functions for consistency.
- Remove register declarations.
- Some KNF.
2003-04-26 18:50:18 +00:00
tsutsui
f08b4ccb7c
- Move some common declarations into z8530var.h.
...
- Fix struct consdev properly.
- Remove register declarations.
- some more KNF.
2003-04-26 18:43:19 +00:00
fvdl
83c5b83ef7
Rename the x86_64 port to amd64, as this is the actual name used for
...
the processor family now. x86_64 is kept as the MACHINE_ARCH value,
since it's already widely used (by e.g. the toolchain, etc), and
by other operating systems.
2003-04-26 18:40:00 +00:00
tsutsui
f1b06950f8
Add a nop for delay slot to fix asm warning.
2003-04-26 18:39:59 +00:00
fvdl
81918bf8b4
Rename the x86_64 port to amd64, as this is the actual name used for
...
the processor family now. x86_64 is kept as the MACHINE_ARCH value,
since it's already widely used (by e.g. the toolchain, etc), and
by other operating systems.
2003-04-26 18:39:25 +00:00
uwe
ee5e1f8ed0
attach_kbd should be initied to zero. makes keyboard attach properly
...
when booting with serial console. tested on jornada 680.
2003-04-26 18:22:56 +00:00
fvdl
a7c0cbd744
Save symtabspace in the LKM || KSYMS case as well; otherwise it'll overlap
...
with the page table pages for the kernel, and Bad Things will happen.
2003-04-26 18:13:16 +00:00
chris
70a9a33cc8
Remove a strh. I don't think it's available on archv3 and it doesn't work
...
on acorn32's with an SA110 in them as the bus doesn't support halfword
transfers.
2003-04-26 17:50:21 +00:00
chris
c164d29b0b
Add support for ARM32_PMAP_NEW. also make it the default for all cats
...
kernels.
2003-04-26 17:35:57 +00:00
yamt
545cae513c
this doesn't need to include callout.h anymore.
2003-04-26 16:38:00 +00:00
ragge
4a0e449b1e
Add pseudo-device ksyms.
2003-04-26 14:34:16 +00:00
ragge
d79e49080c
#ifdef around end[].
2003-04-26 14:12:22 +00:00
ragge
d8c8fa8111
Add pseudo-device ksyms.
2003-04-26 14:10:04 +00:00
bjh21
4c58d3d96a
Rather then messing around with _POSIX_SOURCE and abusing
...
_QUAD_LOWWORD, just use <machine/endian_machdep.h> to get _BYTE_ORDER
and use that. Should fix my PR misc/21317. Fix suggested by kleink.
2003-04-26 13:31:37 +00:00
bjh21
01f90db242
Remove %b support.
...
Encouraged by thorpej.
2003-04-26 13:25:47 +00:00
dsainty
325b10be64
Use the correct bus name in "bus not configured" errors for SCSI and ATAPI
2003-04-26 12:46:59 +00:00
dsl
46687ce6f2
In the absensce of a netbsd disklabel:
...
- Use partition size (instead of type) to determine whether a disklabel slot
has been filled in (eg from mbr info on i386).
- Set number of partitions to 16 to stop disklabel bleating.
2003-04-26 12:02:12 +00:00
ragge
69a66687f8
Call ksyms_init() instead of ddb_init() in case of
...
NKSYMS || defined(DDB) || defined(LKM)
2003-04-26 11:05:05 +00:00
fvdl
df51b177d8
Install cacheinfo.h
2003-04-26 10:49:54 +00:00
ragge
520c93de28
Make ksymms_init() take void * parameters instead of caddr_t.
2003-04-26 10:24:58 +00:00
bouyer
1e2dac7786
Add support for the getcache/setcache ioctls.
2003-04-26 09:54:15 +00:00
bouyer
99a36b0abd
Rename WDSF_EN_WR_CACHE to WDSF_WRITE_CACHE_EN for consistency with other
...
subcommands.
2003-04-26 09:29:41 +00:00
toshii
7583c79436
Make it boot with ARM32_PMAP_NEW defined.
2003-04-26 08:31:30 +00:00
toshii
20697a7696
Fix a comment; 0x40000 isn't 1MB.
...
Use KERNEL_BASE instead of 0xc0000000. No functional change.
2003-04-26 07:09:26 +00:00
toshii
7dbee668be
Some line folding cleanups.
...
Kill an unused variable.
2003-04-26 06:44:28 +00:00
briggs
4c104c6cea
In dmover_backend_alloc(), make sure we get ninputs from the best_algdesc,
...
not just the most recent algdesc (which might be NULL).
2003-04-26 04:44:18 +00:00
uwe
1cfc465c45
Keymaps for US and German keyboards for Jornada 680/690.
2003-04-26 01:06:06 +00:00
fvdl
94e92b1bb3
Assign the right linkcount when renaming a directory.
2003-04-25 23:12:33 +00:00
fvdl
4b293b5851
Share some common cache info cpuid code between i386 and x86_64.
2003-04-25 21:54:29 +00:00
ragge
766d04f56a
Add ksyms device major.
2003-04-25 21:10:46 +00:00
ragge
cddfd23e42
Mobe the SYMTAB_SPACE stuff to ksyms_init, so that it can be used without
...
DDB compiled-in.
2003-04-25 20:30:57 +00:00
fvdl
00a8526dca
Do the right thing in the case of an attach error. From Manuel Bouyer.
2003-04-25 16:03:45 +00:00
fvdl
5aecd7c8fc
On the first read of the DEVCONFIG PCI config register, sparc64 systems
...
seem to return all 1s. The second read is ok, though. So, as a workaround,
read it twice. From Manuel Bouyer.
2003-04-25 16:02:52 +00:00
ragge
0bd41108c4
Explicitly cast printf arg to long, from Tom Spindler.
2003-04-25 07:35:21 +00:00
gmcgarry
2bdf9ba1f2
Fix full-duplex mode (again).
...
Back-out revision 1.170 and and 1.166. Revision 1.170 fixes some problems
introduced in revision 1.166. It isn't clear what problem revision 1.166
was attempting to address. It seems bogus anyway, since we later check
the modes in audio_check_params().
2003-04-25 03:02:11 +00:00
nathanw
6eaaff9eaa
Regen.
2003-04-24 23:37:00 +00:00
fvdl
e799c0e2d5
Add a few devices.
2003-04-24 23:36:10 +00:00
nathanw
ebfdc33307
Add a few Opteron and AMD8000 chipset device IDs.
2003-04-24 23:36:09 +00:00
drochner
9e95dcb696
Change some subordinate functions to take a "struct nfsnode" argument
...
instead of "struct vnode". This saves a number of pointer dereferences;
it sums up to about half a kB for me. And it paves the way for future
fixes.
While cleaning up, eliminate a write-only member of "struct nfsreq"
and a pointless assignment in the NFS_V2_ONLY case.
2003-04-24 21:21:04 +00:00
ragge
e675595289
db_sym_numargs() disappeared by mistake, restore it.
2003-04-24 21:18:34 +00:00
ragge
f5cb3ec885
Teach the lkm code to add loaded module symbols to the in-kernel symbol table.
...
XXX - The way this works is clumsy, at least. It will be fixed as soon as
the in-kernel linker is in place.
2003-04-24 20:09:43 +00:00
ragge
56a3de2302
Include kern_ksyms if ksyms | ddb | lkm. Never include db_elf.c.
2003-04-24 20:04:03 +00:00
ragge
4ee3d47c73
Teach DDB to use ksyms instead of it's own symbol table management.
...
Note: For a.out kernels (beware!) DDB will still use the old stuff.
2003-04-24 20:00:48 +00:00
ragge
44305abd0b
Basic implementation of in-kernel symbol table manager + /dev/ksyms.
2003-04-24 19:56:43 +00:00
fvdl
1f4176dbb6
Because of the padding in mcontext_t, sigframe grew 8 bytes and became
...
unaligned. Remove the padding in struct sigframe itself to fix this.
2003-04-24 19:19:55 +00:00
fvdl
d194f8eb62
Add aapic files.
2003-04-24 18:54:54 +00:00
dsl
82d4d158d2
Missing end of comment
2003-04-24 17:41:03 +00:00
dsl
c9a0a49ac7
Don't use ENTRY - it aligns the label and we can't afford the space.
...
Adjust coding to save 2 more bytes (assume 'D' flag clear - it is)
2003-04-24 17:40:32 +00:00
dsl
cf4ada7934
Fix code that scans extended partition list
2003-04-24 17:37:54 +00:00
gmcgarry
0645f99b01
More ufs2 merge fall-out. Pass the correct pointer to the dinode
...
for clearing. Fixes PR#21241.
2003-04-24 08:05:35 +00:00
christos
94f1b04361
fix a few missing malloc attach/detach. Now this works.
2003-04-24 07:50:19 +00:00
martin
dc09fa82ac
Fix attachment for sparc64 systems (missing bus_space_vaddr).
...
Patches submitted in PR 21188.
2003-04-24 05:06:32 +00:00
bjh21
c4987984da
Accept standard IEEE 802.3 names for Ethernet medium types.
...
Suggested by Christos, IIRC.
2003-04-23 23:16:43 +00:00
nathanw
68b16f8c13
Patch from Nick Hudson to clean up a couple of cases in proc_unstop(),
...
as well as improving the comments a bit. Addresses PR kern/20159.
2003-04-23 21:32:10 +00:00
matt
275eeea6c9
The __wrap_* symbols need to become local symbols. If you have module
...
x which is dependent y but they both have __wrap_foo, if the __wrap_foo
is not localized, you will get linker truncation messages.
2003-04-23 18:34:20 +00:00
matt
13bf20997a
Need to include <sys/sa.h> for <sys/syscall.h>
2003-04-23 17:50:51 +00:00
yamt
5d60643560
use acpi notify mechanism if possible.
...
XXX i'm not sure if there're PCs that actually need to fall back to polling.
2003-04-23 15:48:35 +00:00
jmmv
f302f813f2
Bump ramdisk size to 3000 blocks.
2003-04-23 14:21:07 +00:00
perseant
ef3c60764c
Make LFS work better (though still not "well") as an NFS-exported
...
filesystem (and other things that needed to be fixed before the tests
would complete), to wit:
* Include the fs ident in the filehandle; improve stale filehandle checks.
* Change definition of blksize() to use the on-dinode size instead of
the inode's i_size, so that fsck_lfs will work properly again.
* Use b_interlock in lfs_vtruncbuf.
* Postpone dirop reclamation until after the seglock has been released,
so that lfs_truncate is not called with the segment lock held.
* Don't loop in lfs_fsync(), just write everything and wait.
* Be more careful about the interlock/uobjlock in lfs_putpages: when we
lose this lock, we have to resynchronize dirtiness of pages in each
block.
* Be sure to always write indirect blocks and update metadata in
lfs_putpages; fixes a bug that caused blocks to be accounted to the
wrong segment.
2003-04-23 07:20:37 +00:00
uwe
d16caf9f8c
Add KB_DE | KB_MACHDEP placeholder. Need it for the Jornada 680/690
...
German (ABD) keyboard layout (to be added soon).
2003-04-23 04:03:58 +00:00
uwe
01b7788331
Constify second argument of table_getnum().
2003-04-23 03:45:07 +00:00
uwe
5d8b485cc8
Fix dump_node() prototype.
2003-04-23 03:42:21 +00:00
tls
85c8cfb533
Correct use of MAXBSIZE where MAXPHYS was intended. This is a necessary
...
first step towards per-device MAXPHYS, and has the beneficial side effect
of allowing clustering to MAXPHYS even on systems that need to run with
a reduced MAXBSIZE to get more metadata buffers.
2003-04-23 00:55:17 +00:00
fvdl
c6547ba96f
Add aapic at pci.
2003-04-22 22:39:25 +00:00
fvdl
8df642c3bd
"driver" for AMD 8131 IO apic, appearing in PCI space. Currently only
...
contains a workaround for a hardware bug.
2003-04-22 22:34:28 +00:00
augustss
4d876de100
Regen.
2003-04-22 22:08:00 +00:00
augustss
a237a7a011
Fix some naming bugs.
2003-04-22 22:07:40 +00:00
augustss
b12c8ecd7f
Add another device.
2003-04-22 22:07:05 +00:00
fvdl
8672af5bd0
Regenerated after AMD 8131 additions.
2003-04-22 20:53:09 +00:00
fvdl
501dfe4285
Add AMD 8131 PCI-X tunnel and IO apic.
2003-04-22 20:52:06 +00:00
christos
77500fa37f
forgot one malloc attach/detach
2003-04-22 17:23:47 +00:00
jdolecek
4ecc3047b1
also rewrite emul_find_interp() calls to include the ${COMPAT_UTIL_OVERRIDE}
...
prefix
2003-04-22 17:23:20 +00:00
christos
d864ba0136
fix lkm malloc lossage.
2003-04-22 17:14:12 +00:00
christos
baf70d805d
explicitly attach and detach malloc types like smbfs does; thanks jaromir.
2003-04-22 16:48:19 +00:00
christos
abfff333c3
don't define TRUE and FALSE locally.
2003-04-22 15:10:04 +00:00
thorpej
1b42986cc6
Bump SYMTAB_SPACE a little.
2003-04-22 14:49:13 +00:00
tsutsui
4762c81f53
- #ifdef DEBUG, #if DEBUG -> #ifdef AHC_DEBUG
...
- TAB/space cosmetics
2003-04-22 14:33:01 +00:00
yamt
d99d457173
correct accounting of {exec,file}pages.
...
they are not updated correctly when breaking loan.
2003-04-22 14:28:15 +00:00
thorpej
49c00b1d84
Use high vectors on IQ80321 and IQ80310.
2003-04-22 14:09:46 +00:00
thorpej
efb72f65db
Use high vectors on the BRH.
2003-04-22 13:51:11 +00:00
thorpej
d1c431c7e1
pmap_link_l2pt(): If not ARM32_NEW_VM_LAYOUT, add an assertion that
...
the VA that the page table maps is aligned to a 4MB boundary.
2003-04-22 13:49:48 +00:00
christos
db7b52084a
choose the smaller size of the two strings when memcpy'ing them. A better
...
fix would be to strncpy and null terminate? From enami.
2003-04-22 13:18:52 +00:00
christos
8906603597
fix wrong calculation. pointed by enami.
2003-04-22 13:11:23 +00:00
bjh21
c6c405019e
Include <machine/pio.h> for in8() and in16().
2003-04-22 11:37:28 +00:00
fvdl
0c0c1c086e
Bump the number of level 2 pages for the kernel image.
2003-04-22 11:32:34 +00:00
itojun
b2fcce1997
style
2003-04-22 10:08:33 +00:00
thorpej
1f5e3cbbe6
New pmap for netwinder.
2003-04-22 01:42:01 +00:00
thorpej
bbef46a7e9
Some ARM32_PMAP_NEW-related cleanup:
...
* Define a new "MMU type", ARM_MMU_SA1. While the SA-1's MMU is basically
compatible with the generic, the SA-1 cache does not have a write-through
mode, and it is useful to know have an indication of this.
* Add a new PMAP_NEEDS_PTE_SYNC indicator, and try to evaluate it at
compile time. We evaluate it like so:
- If SA-1-style MMU is the only type configured -> 1
- If SA-1-style MMU is not configured -> 0
- Otherwise, defer to a run-time variable.
If PMAP_NEEDS_PTE_SYNC might evaluate to true (SA-1 only or run-time
check), then we also define PMAP_INCLUDE_PTE_SYNC so that e.g. assembly
code can include the necessary run-time support. PMAP_INCLUDE_PTE_SYNC
largely replaces the ARM32_PMAP_NEEDS_PTE_SYNC manual setting Steve
included with the original new pmap.
* In the new pmap, make pmap_pte_init_generic() check to see if the CPU
has a write-back cache. If so, init the PT cache mode to C=1,B=0 to get
write-through mode. Otherwise, init the PT cache mode to C=1,B=1.
* Add a new pmap_pte_init_arm8(). Old pmap, same as generic. New pmap,
sets page table cacheability to 0 (ARM8 has a write-back cache, but
flushing it is quite expensive).
* In the new pmap, make pmap_pte_init_arm9() reset the PT cache mode to
C=1,B=0, since the write-back check in generic gets it wrong for ARM9,
since we use write-through mode all the time on ARM9 right now. (What
this really tells me is that the test for write-through cache is less
than perfect, but we can fix that later.)
* Add a new pmap_pte_init_sa1(). Old pmap, same as generic. New pmap,
does generic initialization, then resets page table cache mode to
C=1,B=1, since C=1,B=0 does not produce write-through on the SA-1.
2003-04-22 00:24:48 +00:00
fvdl
3f5d6a0d73
Remove unused variable.
2003-04-21 22:00:42 +00:00
fvdl
9ec222cfbe
Remove trigraph.
2003-04-21 21:49:31 +00:00
fvdl
2674450fcb
Avoid trigraph in string.
2003-04-21 21:45:59 +00:00
fvdl
13b6cff110
Reset bus in attach, not at first access.
2003-04-21 20:05:26 +00:00
fvdl
11e1ebb8dd
Reset channel(s) in ahc_attach, rather than at first access.
2003-04-21 19:59:48 +00:00
fvdl
1adc169997
Add NetBSD RCS Id.
2003-04-21 18:12:22 +00:00
fvdl
8775f88505
Add another IBM drive that incorrectly reports DT only.
2003-04-21 18:07:14 +00:00
fvdl
d7ad58b224
Add file that I missed when adding the ahd driver.
2003-04-21 16:53:59 +00:00
fvdl
7c5409295c
Set/report DT a bit more correctly.
2003-04-21 16:52:07 +00:00
augustss
7d5779ad01
Recognize more devices. From FreeBSD.
2003-04-21 16:38:34 +00:00
augustss
6be8a91f88
Add quirk. From FreeBSD.
2003-04-21 16:37:42 +00:00
augustss
33011a8fcf
Regen.
2003-04-21 16:37:14 +00:00
augustss
ac600b6a72
Add more devices. From FreeBSD and OpenBSD.
2003-04-21 16:36:52 +00:00
manu
0fd8402c80
Some Mach-O libraries do not have a load base address. The Darwin
...
kernel seems to skip them, letting the dirty job to dyld.
2003-04-21 14:32:25 +00:00
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
thorpej
8896997409
Gah, fix *another* typo.
2003-04-18 23:45:50 +00:00
uwe
7b16962da2
Quirk Pilotech CRW-600.
2003-04-18 23:38:18 +00:00
uwe
fa83041685
Regen for Pilotech CRW-600.
2003-04-18 23:31:43 +00:00
uwe
f700119cc7
Add Pilotech and its CRW-600 6-in-1 USB flash reader.
2003-04-18 23:28:09 +00:00
christos
4e4a4c7bc9
Make the mode of /proc/<pid>/fd dr-x------
2003-04-18 23:19:24 +00:00
thorpej
21e8a3bc0f
Oops, fix typo.
2003-04-18 22:44:54 +00:00
christos
cd174e0605
make the copy_statfs_args() function copy all the fields that are not
...
set by the filesystems. Before my changes, the statfs code depended
on calling it with mp->mnt_stat, and did not explicitly initialize
anything!
2003-04-18 22:44:45 +00:00
thorpej
08330568d0
Define two new macros to test if a mapping is mappable with an L1 Section
...
mapping or an L2 Large Page mapping.
2003-04-18 22:39:56 +00:00
thorpej
78b1b81e74
Add a comment indicating that the current method of enabling high vectors
...
requires that the CPU control vector be properly readable. I believe that
all CPUs that have high vector support have a readable CPU control register,
but if we ever encounter one that does not, then we'll have to adjust this
code.
2003-04-18 22:30:05 +00:00
christos
11cc5eb2c6
Make symlinks for directories that point to the actual directory.
...
Make symlinks to [kqueue] and [misc] for kqueue and misc fds.
2003-04-18 21:55:35 +00:00
scw
63deb1bd73
Cast __greg_t to/from caddr_t via intptr_t.
2003-04-18 21:07:35 +00:00
scw
9957a9bbe4
Now that UBC no longer creates writable virtual aliases (for PMAP_VIVT),
...
we no longer need to track mappings added by pmap_kenter_pa() for the
purpose of cache-alias detection.
2003-04-18 20:02:34 +00:00
scw
f97e7c222f
Need to bump uvmexp.intrs when taking a h/w interrupt.
2003-04-18 19:57:11 +00:00
tsutsui
761db756a1
- remove definitions of SIZE and STRIP which should be defined elsewhere
...
- use mips/conf/stand.ldscript so that objcopy -O binary works
2003-04-18 19:12:01 +00:00
tsutsui
0b271b64a6
Use LEAF_NOPROFILE().
2003-04-18 18:52:27 +00:00
tsutsui
a34a62065c
Revert part of previous. sdstrategy() no longer calls
...
bounds_check_with_label() for RAW_PART.
2003-04-18 15:57:37 +00:00
yamt
8178e19cb6
fix a use of an uninitialized variable.
2003-04-18 15:19:02 +00:00