Commit Graph

55398 Commits

Author SHA1 Message Date
tsutsui
2168ee307b Remove (commented-out) pmsi entries. 2002-04-15 14:47:03 +00:00
mycroft
0a948745d1 Regen. 2002-04-15 14:44:30 +00:00
mycroft
9d7578b25c Use chip numbers for most of the new Adaptec IDs, not board numbers. 2002-04-15 14:43:42 +00:00
skrll
6024d2c603 Nuke pmsi 2002-04-15 12:52:28 +00:00
joda
518cc55c27 Maxtor D040H2 also can't modesense 2002-04-15 12:40:28 +00:00
ad
e200da16d8 Regen. 2002-04-15 11:12:46 +00:00
ad
aad41f43b6 Add a bunch of Adaptec, Dell and HP products. From OpenBSD. 2002-04-15 11:12:25 +00:00
leo
6b640fdcec Fix PR-16305. Make the 'end' symbol local. 2002-04-15 09:29:56 +00:00
mhitch
77b771d03b Don't copy boot.amiga to ${DESTDIR}/ - it is now done by the install/update
script, sysinst, or manually when the bootblock is installed.
2002-04-15 08:38:55 +00:00
martin
ed5298eb2f Make the LEDs work.
Green LED = we have a TEI assigned, yellow LED slow blinking = one B-channel
in use, yellow LED fast blinking = both B-channels in use.
2002-04-15 08:11:00 +00:00
simonb
50d6d2b7d6 Add pcn, pnaphy.
Add algor, evbmips, sbmips devices.
Sort.
2002-04-15 07:37:17 +00:00
martin
bc96c942e9 This card issues a constant stream of interrupts (from an internal timer).
Make it do this only while /dev/isdn is open.
2002-04-15 06:59:51 +00:00
gmcgarry
3238830b82 rtc is used on hp300 2002-04-15 06:08:19 +00:00
gmcgarry
acb682fad2 When searching for devices also skip those deleted by userconf.
Problem reported by uwe.
2002-04-15 05:30:12 +00:00
simonb
f938ee8df6 Fix a couple of tyops. 2002-04-15 04:13:25 +00:00
briggs
0c4a264e40 Really nuke pmsi 2002-04-15 02:05:10 +00:00
briggs
9d121c1c24 Nuke pmsi 2002-04-15 01:43:35 +00:00
manu
33d1091e95 Removed the IRIX signal trampoline, which is useless now we use the signal
trampoline provided by IRIX libc.
2002-04-14 21:52:25 +00:00
manu
f8c12b3107 IRIX provide a signal trampoline in libc, we now use it.
- the signal trampoline address is given to the kernel by a sigaction()
  fourth argument
- we introduce an irix_emuldata structure to keep track of the signal
  trampoline address
- we don't support per-sigaction signal trampolines, we only do per-process
- now that we use the IRIX libc signal trampoline, we do not have to handle
  the errno update from the signal trampoline
- it is possible that IRIX 5 signal delivery works too, since theses binaries
  will come with their own signal trampoline
2002-04-14 21:50:49 +00:00
thorpej
cff1953dae Fix typo in last (luckily, search/replace makes the same typo everywhere). 2002-04-14 21:32:24 +00:00
thorpej
302ea396c3 iq80310_do_pending -> iq80310_do_soft, to accurately describe what's
actually going on there.
2002-04-14 21:30:19 +00:00
onoe
dd80e6d577 Some fixes for Symbol card.
- The version string doesn't need to start with 'V'.
- Symbol firmware also support CREATE_IBSS.
- But it doesn't support ROAMING_MODE nor MICROWAVE_OVEN.
2002-04-14 19:55:23 +00:00
thorpej
a9e4c1a943 * Delcare COUNTER_MASK properly.
* Restructure timer_read() so that the compiler generates better code.
2002-04-14 19:47:03 +00:00
mycroft
f00c3c2e40 tm_gpctl and tm_gpdata must be shifted right 16 bits. DOH.
This makes another CardBus tlp card work...
2002-04-14 19:10:18 +00:00
mycroft
ab262fe6f0 Snarf-and-barf the `quirk' code from if_tlp_pci.c, and use it to set the right
mediasw (MII-over-SIO) on the Level One FPC-0101TX 10/100 card.
XXX This should probably key off subsystem IDs, not OUIs...
2002-04-14 17:17:10 +00:00
bouyer
fda8de6495 bus_space_unmap() ctl_baseioh instead of ctl_ioh for the native case.
Pointed out by enami, and should fix kern/16307.
2002-04-14 16:55:08 +00:00
lukem
fdc8fec66f allow default colours to be overridden by
PCCONS_DEFAULT_FG PCCONS_DEFAULT_SO_FG
	PCCONS_DEFAULT_BG PCCONS_DEFAULT_SO_BG
2002-04-14 14:20:33 +00:00
tsutsui
d539066478 Set COPTS="-Os -mmemcpy" 2002-04-14 12:51:17 +00:00
martin
e4998611e9 Fix copyright notice. 2002-04-14 12:24:26 +00:00
takemura
8bbc2ff5a7 Added '#if defined(_KERNEL)' surrounging KERNEL_RCSID macro. Hpccmap is
used in bootloader too.
2002-04-14 09:07:04 +00:00
takemura
e63e3c0ed4 Added bus probing to avoid bus error. 2002-04-14 07:59:56 +00:00
tsutsui
a1124f0f2a Enable spifi SCSI. 2002-04-14 07:37:58 +00:00
takemura
c9cb463127 Print bad address in interrupt handler. 2002-04-14 07:34:20 +00:00
takemura
ab452aef6c Fixed 8bpp problem of mq200. 2002-04-14 06:07:40 +00:00
tsutsui
55c1bc5448 Expand MEMORY_DISK_ROOT_SIZE to 2.5Mbytes. 2002-04-14 02:30:22 +00:00
mycroft
36c2231c92 Remove pmsi. 2002-04-14 01:45:29 +00:00
mycroft
92719d60d8 The functionality of pmsi has been implemented in pms, so it's time for pmsi
to go back where it came from.
2002-04-14 01:42:52 +00:00
briggs
301eca907d Enable ext2fs and RAIDframe. 2002-04-13 23:33:16 +00:00
thorpej
71123e8747 Gah, correct editor mistake in last. 2002-04-13 22:42:39 +00:00
thorpej
755369ecb1 * Eliminate some redundant masking.
* Don't run the snake if the board doesn't have a 7-segment display.
2002-04-13 22:41:46 +00:00
bjh21
b5d40b188c Remove bogus dependency on options HPCARM. 2002-04-13 19:15:52 +00:00
briggs
652b9e4c7b Fixes and changes from Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>.
* Clean up after briggs@ changes to support bus_dma.
* Add support for reading sMemory resources from nubus cards.
* Add support for old cards with only the board rsrc (NatSemi NB-GPIB, e.g.)
* Add a few more card identifiers.
2002-04-13 17:49:41 +00:00
tsutsui
f1cd70e3dc Add -DLIBSA_USE_MEMCPY and -DLIBSA_USE_MEMSET to CPPFLAGS. 2002-04-13 17:48:10 +00:00
christos
45c8aefabf PR/16058: Tero Kivinen: Don't attempt to free resources that we failed to
get in the attach phase.
2002-04-13 17:06:53 +00:00
christos
db29511727 PR/16058: Tero Kivinen: Don't free rbuf or detach tty if rbuf allocation
failed during attach phase.
2002-04-13 17:05:16 +00:00
matt
54d0dedd0c Cleanup the debug prints in pmap_enter. 2002-04-13 15:58:30 +00:00
bjh21
34aad0d131 Only include opt_compat_svr4.h ifdef _KERNEL_OPT. 2002-04-13 14:20:29 +00:00
tsutsui
df16ac88cd Use "-Os -mmultiple". 2002-04-13 13:44:48 +00:00
tsutsui
c7a7330ca9 Add "cleanlibdir" target. 2002-04-13 13:35:23 +00:00
tsutsui
c58dce575b Set USE_LIBSA_MEMCPY and USE_LIBSA_MEMSET to save a few bytes. 2002-04-13 13:31:40 +00:00
isaki
9ee0a509cd Fix minor typo in adpcm_estim[]. 2002-04-13 12:40:50 +00:00
simonb
506b9316a4 Remove commented out "options EXEC_ELF_CATCHALL", and note that
COMPAT_1{1,2} provide this (renamed) functionality.
2002-04-13 12:08:46 +00:00
martin
8d2451d1be When pruning state at interrupt enable time, also call the clearirq
routine for cards that provide it.
2002-04-13 11:03:54 +00:00
manu
c56e133974 More comments on the new signal frame/trampoline 2002-04-13 10:52:59 +00:00
martin
0cdadad2cd Defer initialization of the ISAC chip until we enable interrupts - it gets
into a strange failure mode if we do it with disabled interrupt. When
(re-)enabling interrupts reset transmitter and receiver and clear any
pending state.
2002-04-13 10:28:36 +00:00
takemura
090be59325 Fixed dev/hpc/hpcfb.c to set RI_BSWAP flag in 8bpp for rasops8.c
and backout changes 'fix LCD byte-order setting':
        arch/hpcsh/dev/hd64461/hd64461video.c   Rev. 1.7 to 1.8
        arch/hpcmips/dev/plumvideo.c            Rev. 1.23 to 1.24
        arch/hpcmips/tx/tx3912video.c           Rev. 1.24 to 1.25
2002-04-13 09:29:53 +00:00
tsutsui
97538862ad Add -b option for contiguous secondary boot on ustarfs. 2002-04-13 08:14:07 +00:00
tsutsui
b29a332627 Add ustarfs support and changedisk_hook(). 2002-04-13 08:04:41 +00:00
tsutsui
3369f7b337 Add some ioctl() definitions to eject floppy. 2002-04-13 07:56:02 +00:00
tsutsui
894a4f24e2 Add getchar(). 2002-04-13 07:53:53 +00:00
tsutsui
d5dd9411f6 bcopy() -> memcpy() 2002-04-13 07:34:41 +00:00
tsutsui
10720920d5 bzero() -> memset() 2002-04-13 07:34:17 +00:00
tsutsui
c69f6fde96 Rename halt() -> rom_halt(), and declare it in romcall.h. 2002-04-13 02:43:43 +00:00
tsutsui
5e64969e37 Build SA libs with -mmemcpy and set LIBSA_USE_MEMSET and LIBSA_USE_MEMCPY. 2002-04-13 02:30:30 +00:00
tsutsui
9d95be4e68 Add -mmemcpy to CFLAGS. 2002-04-13 02:29:08 +00:00
mycroft
d4a9baf2b1 Add IR support. 2002-04-13 02:25:27 +00:00
thorpej
5358f38f8b Add an install kernel for the Npwr. 2002-04-13 00:51:18 +00:00
tv
43df8ed28f Add host-OS tools for i386, which end up in the "installation/misc"
directory of the release tree.
2002-04-12 23:11:58 +00:00
leo
9485827587 Regen. 2002-04-12 22:37:21 +00:00
leo
d7f7c55a74 Move USERCONF to GENERIC.in and trim the phy-list. 2002-04-12 22:34:13 +00:00
leo
df30bb7f3d Oops, remove some unintended changes. 2002-04-12 22:29:14 +00:00
leo
c3e3c2c718 Add some PCI ethernet/audio cards for the Hades and the Milan. 2002-04-12 22:22:25 +00:00
leo
f94a8b4d29 Don't bail out when /netbsd is not present. We don't really need it
anyway.
2002-04-12 22:11:33 +00:00
leo
cbe57bbd7c Make the exitcode != 0 when the ioctl fails. 2002-04-12 22:09:28 +00:00
thorpej
10c0c20ad4 Default all XScale core processors to the read/write-allocate write-back
cache mode.  Add a new XSCALE_CACHE_WRITE_THROUGH option for people who
are paranoid about the cache-related errata (you *do* have to line up
the planets correctly to trip them, but having the option is useful).
2002-04-12 21:52:45 +00:00
thorpej
60e10382d5 Add a "netbsd-sd0" configuration. 2002-04-12 21:45:13 +00:00
thorpej
3d6043053d * Add the ability to display .'s on the 7seg display.
* Display . . when halted.
2002-04-12 20:50:26 +00:00
thorpej
09eacc7061 Set COM_HW_NO_TXPRELOAD. The IQ80321's UART doesn't lose without
this, but it works fine with it, and this serves to broaden the
testing field of the flag.
2002-04-12 19:35:17 +00:00
thorpej
4a0ee23b99 Set COM_HW_NO_TXPRELOAD. 2002-04-12 19:34:24 +00:00
thorpej
ff7306cf44 * Add a new hwflag, COM_HW_NO_TXPRELOAD, which tells comstart() to
not pre-load the chip's Tx buffer, but instead waits for the Tx Ready
  interrupt to transmit the first chunk of data.
* On the IOP310, set COM_HW_NO_TXPRELOAD, rather than COM_HW_TXFIFO_DISABLE.

This solves the "UART hangs" problem on the Npwr in a nicer way (i.e. we
get to use the FIFO, whee).  The COM_HW_NO_TXPRELOAD happens to match the
Linux 16550 driver's Tx algorithm, and the "UART hang" was never observed
on the Npwr running Linux.

Eventually, we might want to eliminate the COM_HW_NO_TXPRELOAD, and simply
always use its algorithm.  But it should be tested on more 16x50 variants
before we do that.

Kudos to Valeriy Ushakov <uwe@netbsd.org> for pointing out this solution
(which also happens to fix the stray UART interrupt issue on the Krups
Javastation), and to Allen Briggs <briggs@netbsd.org> for experimenting
with various methods of fixing this.
2002-04-12 19:32:30 +00:00
thorpej
f56b432a79 Use the bus_space_generic bus space ops. 2002-04-12 19:12:31 +00:00
thorpej
80146a5185 Use the bus_space_generic bus space ops. 2002-04-12 19:02:30 +00:00
thorpej
79303779d8 Add some generic bus_space ops, which are pulled in by the
"bus_space_generic" configuration attribute.
2002-04-12 18:56:57 +00:00
thorpej
32a0860797 Centralize ARM CPU configuration information by adding a new header
file, <arm/cpuconf.h>, which pulls in "opt_cputypes.h" and then defines
the following:
* CPU_NTYPES -- now many CPU types are configured into the kernel.  What
  you really want to know is "== 1" or "> 1".
* Defines ARM_ARCH_2, ARM_ARCH_3, ARM_ARCH_4, ARM_ARCH_5, depending
  on which ARM architecture versions are configured (based on CPU_*
  options).  Also defines ARM_NARCH to determins how many architecture
  versions are configured.
* Defines ARM_MMU_MEMC, ARM_MMU_GENERIC, ARM_MMU_XSCALE depending on
  which classes of ARM MMUs are configured into the kernel, and ARM_NMMUS
  to determine how many MMU classes are configured.

Remove the needless inclusion of "opt_cputypes.h" in several places.
Convert remaining users to <arm/cpuconf.h>.
2002-04-12 18:50:29 +00:00
manu
5ee554064d Reworked IRIX signal delivery so that ucontext is used instead of sigcontext
when SA_SIGINFO is used. The IRIX process will hence find the expected
information using the third argument of the signal handler.

We do not provide code and siginfo yet.
2002-04-12 18:44:57 +00:00
mycroft
3b38c02e34 Add support for the ServerWorks OSB4 and CSB5 chipsets.
Note:  The code is written a little more cruftily than it should be.  It's also
only tested on the OSB4.  I'm not sure it even makes sense to have support for
`native' mode, but I put it in just in case.
2002-04-12 18:02:04 +00:00
bjh21
9ca6637757 opt_footbridge.h no longer exists. 2002-04-12 18:01:17 +00:00
mycroft
04d3df6513 Enable AGP GART support by default. 2002-04-12 17:58:17 +00:00
heinz
ebc862f9b0 Added some clarifying comments after my mistake. 2002-04-12 17:56:14 +00:00
heinz
ce4cc4a651 Regenerate to compensate my mistake of committing this _together_ with
usbdevs. Should now have the correct reference to usbdevs.
2002-04-12 17:40:38 +00:00
manu
78583a4567 Always define SA_SIGINFO, and keep track of it in SVR4 emulation. This is
needed for IRIX signal delivery.
Approved by Christos.
2002-04-12 17:37:30 +00:00
christos
7d930e8572 Use SESSHOLD and SESSRELE consistently.
Add SESSHOLD and SESSRELE to the t_session, so that we don't have dangling
references [inspired by OpenBSD].
2002-04-12 17:02:33 +00:00
pk
0c22ac1fa6 Add entries for Type5 keys T5_Insert, T5_Home, T5_End, T5_PgUp and T5_PgDn
as suggested by uwe@netbsd.org.
2002-04-12 14:27:29 +00:00
briggs
e588351a82 Don't need to install spkr.h 2002-04-12 13:33:23 +00:00
christos
71d5289a50 regen 2002-04-12 13:12:57 +00:00
christos
9a5cce0e79 add some more devices; sorry I don't remember where they came from. 2002-04-12 13:12:40 +00:00
heinz
16e1edf6ab Add a bunch of webcams from Philips (infos found on a Linux web site) 2002-04-12 13:12:28 +00:00
bjh21
1283cdaaed Add <luna68k/svr4_machdep.h>, since that seems to be necessary to get
things to compile.
2002-04-12 12:46:39 +00:00
gmcgarry
6e066ba77a Add commented-out USERCONF option. Mainly useful for install media
and can be optionally enabled based on miniroot and ramdisk size
requirements.
2002-04-12 08:10:45 +00:00
martin
a56dc0602f Document a puzzling assignement. 2002-04-12 06:21:57 +00:00
thorpej
a6159879f0 Remove footbridge-specific stuff that will never apply on the Integrator. 2002-04-12 06:13:42 +00:00
lukem
dab39d6237 use ${ELF2ECOFF} from <bsd.{own,sys}.mk> 2002-04-12 05:11:17 +00:00
briggs
a7d9bc4bf3 Processing pending interrupts before reenabling external interrupts in splx(). 2002-04-12 04:52:57 +00:00
briggs
b5ee40947f Disable TXFIFO on npwr. There is some sort of serial interrupt lossage that
seems to be greatly alleviated by this change.
2002-04-12 03:01:57 +00:00
briggs
8989cea6a8 Enable pciide, wd, atapibus, and atapi devices. 2002-04-12 02:57:00 +00:00
briggs
b5b11bf5f5 Map winbond interrupts. 2002-04-12 02:55:03 +00:00
briggs
67dbc34547 Remove exception for CONSPEED on NPWR -- current redboot uses 115200, too. 2002-04-12 00:58:49 +00:00
thorpej
49df0c927f Lose -nbsd 2002-04-11 21:47:36 +00:00
bjh21
3a33a1deec Jason claims that nothing tests for RISCPC any more. Make it so. 2002-04-11 17:31:23 +00:00
skrll
ac60400580 The results of my cats NWDO hacking.
This was tested using a custom INSTALL kernel. The current one is >4Mb
which the cats firmware can't currently boot. We need to decide what
needs to be removed from INSTALL.
2002-04-11 16:33:58 +00:00
hannken
6991df9968 Add config for the SUNIX line of pci serial/parallel cards.
Approved by: Jason R. Thorpe <thorpej@wasabisystems.com>
2002-04-11 13:53:56 +00:00
augustss
d0c3f994ea Put device name at start of line. 2002-04-11 11:21:26 +00:00
pk
b7cae9b821 Pass fully encoded bus addresses in the attach arguments. 2002-04-11 11:11:23 +00:00
pk
24db2d2924 pmap_kremove4_4c(): correctly compute the maximum number of pages to be
unmapped within a segment.
2002-04-11 11:08:40 +00:00
augustss
3f41adf3be When the DAC claims to support variable rate it doesn't seem to
always do this, so do some extra chechs and fall back on fixed rate.
2002-04-11 10:54:23 +00:00
mjacob
31045afa8c Clean up a bit from the last checkin so that the correct result pointers
are used- didn't make a difference, but hey...

Put in commented out GFF_ID code- for use in future attempts to search
the fabric- this probably has to go thru the management server path.

Don't whine about handles we can't find if these are aborted commands
(we know we can't find the handles because we destroy handles after
a successful mailbox abort- we don't wait for the F/W to decide whether
it wants to return a status IOCB after this happens).
2002-04-11 02:32:03 +00:00
martin
f12d3f51e7 Remove some redundant tries to disable interupts. We already avoided enabling
them.
Fix a stupid typo when enabling/disabling interrupts: we clear pending
interrupts when enabling, not disbling isac interrupts.
2002-04-10 23:51:06 +00:00
thorpej
de43efffee G/c non-netwinder stuff. 2002-04-10 22:35:17 +00:00
thorpej
bfe71d0a4b vm_offset_t -> vaddr_t,paddr_t 2002-04-10 22:30:44 +00:00
thorpej
27d98ca694 Remove the Control register handling from arm32_vector_init(). Apparently,
the ARM6 and ARM7 do completely the wrong thing if you read this register,
so we have to handle this a different way.
2002-04-10 21:45:43 +00:00
thorpej
d2a6d9baa7 Remove obsolete tests of "netwinder" and "footbridge". 2002-04-10 20:30:30 +00:00
thorpej
2bbba08b60 Delete option SAIP; nothing tests it. 2002-04-10 20:20:04 +00:00
thorpej
9d1c2c73c1 Eliminate all #ifdef HPCARM, and delete the option. 2002-04-10 20:17:23 +00:00
thorpej
e52d5c4ec1 Remove FOOTBRIDGE. 2002-04-10 20:13:54 +00:00
thorpej
4a45f1922b Remove meaningless test against FOOTBRIDGE. 2002-04-10 20:13:20 +00:00
thorpej
4f778bc49c G/c FOOTBRIDGE option. 2002-04-10 20:12:08 +00:00
thorpej
a9242efbfb Remove options NETWINDER and FOOTBRIDGE; nothing tests for them. 2002-04-10 20:11:44 +00:00
thorpej
59d47eeb79 Remove "options RISCPC"; nothing tests for it anymore. 2002-04-10 20:10:08 +00:00
thorpej
59c9e94b72 vm_offset_t -> vaddr_t,paddr_t 2002-04-10 19:35:22 +00:00
scw
d5ecd48d67 DTRT to avoid installing "netbsd.tmp" in /usr/mdec.
Addresses port-mvme68k/16282.
2002-04-10 18:43:21 +00:00
christos
10ecebd46a implement getdents64; my full java tree builds now. 2002-04-10 18:19:34 +00:00
christos
7e9e73a53c regen 2002-04-10 18:19:04 +00:00
christos
db952e86f3 add getdents64 2002-04-10 18:18:26 +00:00
thorpej
ad2350dccf On XScale processors where we use write-back caching, use are
read/write-allocate line allocation policy.

On the i80321, this improves nearly every lmbench benchmark, dramatically
so the ones that are sensitive to memory bandwidth (100-300% improvement
for these).
2002-04-10 17:39:31 +00:00
thorpej
2b924304ab Add a new function, pmap_alloc_ptpt(), that allocates the PTPT and
maps it the way we want, rather than using uvm_km_zalloc() and playing
the "revoke cacheability" song-and-dance.
2002-04-10 17:08:13 +00:00
thorpej
cad393fa1c pmap_alloc_l1pt(): Just enter the mappings for the L1 table by
hand, rather than calling pmap_kenter_pa() and then revoking
cacheability in the PTE.
2002-04-10 15:56:21 +00:00
thorpej
cd0e28f1e7 Use L2_S_CACHE_MASK in places where we revoke cacheability. 2002-04-10 15:44:23 +00:00
briggs
4fb4a95b7e Install cpu.h. Noted in PR port-powerpc/16285 from smi@sm.sony.co.jp. 2002-04-10 15:36:42 +00:00
mycroft
fd303c4dc5 Add a special case for nrpos=1 to cbtorpos(). This massively reduces CPU usage
by newfs(8) -- and fsck_ffs(8) on a relatively empty file system.  There is
still one divide left in the inner loops, to calculate cylno values.
2002-04-10 14:31:07 +00:00
tsutsui
937863b61e Add (missing) scsibus* at adw? 2002-04-10 13:41:04 +00:00
tsutsui
2b96151049 Disable BOOT_AOUT. 2002-04-10 13:38:42 +00:00
haya
cc2da29e03 Correct an error message. 2002-04-10 10:09:31 +00:00
itojun
9998fd3a57 revert previous 2002-04-10 09:53:01 +00:00
itojun
7aef2b4e07 make it compile (missing includes) 2002-04-10 09:37:51 +00:00
itojun
45451927ec correct variable initialization. reported by fujitsu folks 2002-04-10 09:18:57 +00:00
mycroft
afc5d40400 Use blkstofrags() and fragstoblks(). Use &(NBBY-1) rather than %NBBY.
Switch off of fs_fragshift rather than fs_frag (generates better jump tables).
2002-04-10 08:05:11 +00:00
mycroft
0a9b835878 Use fsbtodb() rather than multiplying by NSPF(). 2002-04-10 07:46:10 +00:00
briggs
41ec4fe6c2 Accept the bus_dma_tag_t for obio, too. 2002-04-10 05:13:09 +00:00
thorpej
668547d841 pmap_kenter_pa(): Obey the "prot" argument, rather than simply making
all mappings r/w (!!).
2002-04-10 04:40:58 +00:00
briggs
648cd86d69 Use m68k/m68k/cacheops.[ch]
Use m68k/m68k/bus_dma.c
	- Add mainbus_attach_args with bus_space_tag_t and bus_dma_tag_t.
	- Use passed-in tags for nubus scan.
2002-04-10 04:38:48 +00:00
briggs
0844eedc55 bus_dma(9) pulled pretty much verbatim from next68k. 2002-04-10 04:36:20 +00:00
mycroft
baf701415e Fix a file name. 2002-04-10 04:21:27 +00:00
mycroft
15aef6da21 Oops; fix the second usage. 2002-04-10 04:19:47 +00:00
mycroft
9502007faf osf1_errno_rxlist[] -> native_to_osf1_errno[] 2002-04-10 04:18:31 +00:00
mycroft
bdfc53717b Fix SRCS so this compiles again. 2002-04-10 04:12:42 +00:00
ichiro
9d3869cb7c more description of Chips was added 2002-04-10 04:01:27 +00:00
chs
a5838679d1 only use UBC_FAULTBUSY to access offsets past EOF,
otherwise we can deadlock trying to busy the same page in uiomove().
2002-04-10 03:06:57 +00:00
ichiro
6a3322ff00 regen 2002-04-10 02:08:59 +00:00
ichiro
68eb465167 add product Instant Wireless Network PC Card, Version 3 2002-04-10 02:07:45 +00:00
thorpej
6e52cbf89e In pmap_copy_page_xscale(), put the source page in the mini-data
cache, as well.  The mini-data cache is 2-way, so src and dst won't
clobber each other, and the smallness of the cache doesn't matter,
since we access each page once sequentially.

While we still have to do the initial clean of the source page, this
saves another 4K of main D$ pollution, and also means we don't have
to do 2 cache passes after the copy is complete (i.e. we can skip the
invalidation of the source page in the main cache, since it's no longer
there).
2002-04-10 01:30:42 +00:00
thorpej
2092e78cec Add separate pmap_{zero,copy}_page() functions for generic ARM
vs. XScale.  Use the mini-data cache for the destination on XScale,
thus saving tossing out 4K of possible-useful data from the main
data cache each time.

This significantly improves every test in lmbench.
2002-04-10 00:45:43 +00:00
thorpej
338e636672 Allow pmap_copy_page() and pmap_zero_page() to be #define'd
in <machine/pmap.h>.
2002-04-10 00:40:45 +00:00
thorpej
da162bee90 * Move the code that cleans the XScale mini-data cache into its
own function.
* Add a new function which sets up the mini-data cache clean area
  properly.
2002-04-09 23:44:00 +00:00
thorpej
1b20a04772 * Split pte_cache_mode into pte_l1_s_cache_mode, pte_l2_l_cache_mode,
and pte_l2_s_cache_mode.  The cache-meaningful bits are different
  for these descriptor types on some processor models.
* Add pte_*_cache_mask, corresponding to each above, which has a mask
  of the cache-meangful bits, and define those for generic and XScale
  MMU classes.  Note, the L2_S_CACHE_MASK_xscale definition requires
  use of the Extended Small Page L2 descriptor (the "X" bit overlaps
  with AP bits otherwise).
2002-04-09 22:37:00 +00:00
thorpej
de29118bc5 Use the "Extended Small Page" L2 descriptor type on XScale (note
this means that there are no 1K sub-pages on XScale, but we don't
use them anyway).
2002-04-09 21:23:16 +00:00
bouyer
10b49b13b9 In wdc_exec_command(), for data commands, read the status register after
the data transfer. This is mandatory for data out commands (although none are
used for now), and not forbiddend for data in commands. Also record if we
did transfers any data.
May solve kern/16159 by making the probe more robust in face of fake identify.
2002-04-09 21:17:53 +00:00
thorpej
917afc7038 Remove the implementation-defined bits from L1_S_PROTO_xscale and
L1_C_PROTO_xscale; while they are supposed to be set to 1 on generic
ARM MMUs (according to the SA-110 and ARM920T manuals), they are listed
as "should be zero" in the i80200 manual.
2002-04-09 21:11:31 +00:00
thorpej
c535f4ffc4 Define 2 classes of ARM MMUs:
1. Generic (compatible with ARM6)
1. XScale (can be used as generic, but also has certainly nifty extensions).

Define abstract PTE bit defintions for each MMU class.  If only one MMU
class is configured into the kernel (based on CPU_* options), then we
get the constants for that MMU class.  Otherwise we indirect through
varaibles set up via set_cpufuncs().

XXX The XScale bits are currently the same as the generic bits.  Baby steps.
2002-04-09 21:00:42 +00:00
martin
30453d09bc Print hardware device name in layer 1 debug output. 2002-04-09 20:48:21 +00:00
martin
7486d374b8 Fix typo in debug message. 2002-04-09 20:47:24 +00:00
thorpej
7b422802f6 L2_TYPE_S -> L2_S_PROTO 2002-04-09 19:44:22 +00:00
scw
6a75b57b3d Simplify generation of the s-record boot file using objcopy instead
of a homebrew tool.

Addresses port-mvme68k/16256.
2002-04-09 19:37:22 +00:00
thorpej
aee5994fce Use abstract names for the protection and PTE type bits in
L1 and L2 descriptors.  This will allow us to support different
PTE layouts that enable the use of extensions on different
processor models.
2002-04-09 19:37:14 +00:00
matt
361b1bae1a Add stand/pcs 2002-04-09 18:03:48 +00:00
matt
d054aa6537 Move installation of pcs750.bin from etc/etc.vax to here so we can get an
object directory.
2002-04-09 18:03:07 +00:00
mycroft
98dc552995 Partially explain the magick in proc_trampoline(). 2002-04-09 16:41:08 +00:00
mycroft
1b7015b0ca Remove an ancient and bogus comment relating to BDB. 2002-04-09 16:29:25 +00:00
mycroft
e7dc129161 Add some comments on lgdt().
Also, reload %fs and %gs, since they are now set to the kernel data descriptor.
2002-04-09 16:22:22 +00:00
mycroft
745cd2197b Remove some incredibly self-wanking comments, now that they are documented in
the *appropriate* place.
2002-04-09 16:16:32 +00:00
sakamoto
612c6ed6a0 add CFLAGS=-Wno-main for void main, suggested by Tsutsui-san. 2002-04-09 16:05:37 +00:00
sakamoto
edf360eeb6 Revert previous change. return type of main is void. 2002-04-09 15:59:35 +00:00
leo
f88c5b26b4 Oops, clicked in a '+' from the diff.. 2002-04-09 14:54:40 +00:00
shin
dee24b4393 renumber IT310 staff. 2002-04-09 13:20:30 +00:00
leo
65e47dab1d Mmmmm PCI_PRODUCT_ATI_MACH64_B -> PCI_PRODUCT_ATI_RAGE_PRO_PCI_P... 2002-04-09 13:16:09 +00:00
leo
a37ac7efba Fix typo. 2002-04-09 13:14:03 +00:00
leo
47713ea9eb Define minor for DEV_NVRAM 2002-04-09 13:07:27 +00:00
leo
959fef2f01 Pull in prototype for setregs() 2002-04-09 13:04:43 +00:00
chs
110d16d5ae add support for built-in NWay autonegotiation on 2114[23], Macronix
98713A, 98715, 98715A, 98725, and Lite-On 82C115.
2002-04-09 05:57:20 +00:00
simonb
c833e8820c Remove a few more magic numbers. 2002-04-09 03:40:16 +00:00
simonb
73aae80caf - Calibrate the timer before the first call to delay.
- Don't use a magic number for the com port address.
2002-04-09 03:38:28 +00:00
thorpej
f0bde82437 Add missing #else 2002-04-09 02:20:10 +00:00
briggs
c5b80e7823 Constify bus_space_write_multi_N() and bus_space_write_region_N().
Addresses PR port-mac68k/16233.
2002-04-09 01:53:47 +00:00
gmcgarry
dea19257e2 Create default disklabel correctly. 2002-04-08 21:41:44 +00:00
eeh
15d074fe26 Add a nice 64-bit mstohz() and clean out some cruft. 2002-04-08 21:05:30 +00:00
augustss
fbe535ae41 Regen. 2002-04-08 20:04:18 +00:00
augustss
9e68b40780 Add LaserJet 1200 2002-04-08 20:03:54 +00:00
bjh21
58b39c78dc Add files.c to SRCS_sa, so at to get stuff to link again. 2002-04-08 17:39:42 +00:00
bjh21
59c268f094 Use ${PRINT_OBJDIR} rather than looking for the libsa objdir manually. 2002-04-08 17:29:53 +00:00
bjh21
98b2b14b9c Add files.c to SRCS, since other bits of libsa want it. 2002-04-08 17:25:54 +00:00
bjh21
a886efc273 Rather than grovelling around for libsa's objdir by hand, use ${PRINT_OBJDIR},
since that's what it's for.
2002-04-08 16:58:19 +00:00
bjh21
4f23ca4d62 Add -Wno-uninitialized to CFLAGS, since it's overly-pessimistic. 2002-04-08 16:49:46 +00:00
sakamoto
05cc0bf255 update example, use $(TOOLDIR)/bin/nbmake-bebox. 2002-04-08 16:12:18 +00:00
sakamoto
ff5a135777 fix vers.o target.
add cleandir distclean cleanlibdir target, remove cleanobjs target.
2002-04-08 16:09:58 +00:00
sakamoto
6317dec5cd change return type to int of main. 2002-04-08 16:07:47 +00:00
sakamoto
c359f5effe include lib/libkern/libkern.h for isdigit. 2002-04-08 16:05:58 +00:00
sakamoto
0f46be36c0 use HOSTPROG and include bsd.hostprog.mk for host tools. 2002-04-08 16:03:17 +00:00
christos
ca4d90ffa1 Fix compile problem. 2002-04-08 14:51:29 +00:00
christos
b10c779726 #ifdef __alpha__ pal functions. 2002-04-08 14:51:18 +00:00
simonb
06959c9cc1 Add "options MIPS64". Evbmips/malta now works on 5Kc MIPS64 malta's. 2002-04-08 14:13:14 +00:00
simonb
40edbdfb37 - Call mips_vector_init() before setting up the serial console, but
after setting up the prom-based console.  If more than one cpu class
  is enabled, the wbflush() handler (needed indirectly by com.c) won't
  be set up.
- Purge some old pmax mcclock-based code.
- Remove a '#if 1/#endif' pair.
2002-04-08 14:11:32 +00:00
simonb
769775ceb4 Make clock/time handling more accurate:
- Use the CPU count register for more accurate microtime (from
   sbmips) and delay (based on an evbmips delay function) functions.
 - Schedule the next hardclock interrupt more accurately (from
   an sgimips patch by Rafal Boni).  Clock drift on one board is
   now ~7ppm instead of ~330ppm.
 - Purge old pmax-based mcclock code.
 - Correctly round off some clock-derived variable calculations.
XXX: Some of this code should be migrated to sys/arch/mips.
2002-04-08 14:08:25 +00:00
christos
bd432c1642 PR/16236: Joachim Koenig-Baltes: Linux emulation connect requires IPV6.
Apparently the sockaddr len fix was only compiled when IPV6 was enabled.
2002-04-08 14:00:31 +00:00
christos
866ad0f73f PR/16231: Ben Harris: m68k does not compile. 2002-04-08 13:27:37 +00:00
martin
58502ab93e Combine sc_enabled and sc_dying into one field sc_intr_valid, they are used
for the same purpose (ignoring invalid interrupts).

For cards that are not able to stop all interrupts (or we don't know a way
to do that in software, at least) run the clearirq callback even when
ignoring an interrupt because we are not enabled. Otherwise the card would
stop interrupting.

Reserve a driver specific callout handle and an int value in the generic
isic_softc to allow card drivers to implement fancy blinkenlights.
2002-04-08 12:20:49 +00:00
simonb
5954457a89 Use "#define<tab>" consistantly. 2002-04-08 12:09:09 +00:00
isaki
c78a609db3 Support slinear8, slinear16_le, slinear16_be. 2002-04-07 14:52:27 +00:00
isaki
485575c0fe Rewrite encode/decode algorithm completely.
It improves playing/recording quality greatly
and it was almost done by Yosuke Sugahara <penta@fuchu.or.jp>.
Thanks a lot!

Add support of slinear8, slinear16_le, slinear16_be.
2002-04-07 14:51:40 +00:00
hannken
ad4a51c35b Rename WSDISPLAYIO_USEFONT to WSDISPLAYIO_SFONT.
Approved by Matthias Drochner <drochner@netbsd.org>.
2002-04-07 09:25:47 +00:00
martin
e9e3eb14ae XXX Explicitly make this fail to compile with a proper warning if we
do not have ARP configured.

This can be caused by configurations including bridge, ppppoe or vlan but
no ethernet interfaces - which does not make sense. We should add a way
to config(8) to issue this kind of warnings.
2002-04-07 07:05:37 +00:00
matt
110c3a2bbf Use ${PROG}.sym in CLEANFILES 2002-04-07 07:00:25 +00:00
martin
47cf1728ea No need to explicitly list vlan or ppppoe for if_ethersubr.c, both already
use attribute "ether" which will be enough to pull in if_ethersubr.c
2002-04-07 06:54:35 +00:00
shin
c368b8692b add Fujitsu INTERTOP CX310 support. 2002-04-07 04:34:33 +00:00
manu
fb46073720 backed out the irix_siginfo field name change: we need different field names
to avoid collision with svr4_siginfo #define si_signo  _info._signo and
friends.
2002-04-06 22:58:43 +00:00
martin
d3630a1e0f Ooops, forgot to adopt this to the previous change of isic_isac_intr. 2002-04-06 22:26:38 +00:00
martin
87b8f8f259 Remove leftover from my first, incomplete attempt to cope with detaching
pcmcia cards. Now that pcmcia attachements properly handle the activate
callback, this is no longer needed (and is suspect to cause completely
unrelated problems.)
2002-04-06 21:46:51 +00:00
mhitch
d410426604 Interface byte counts are counted in ether_input() and ether_output(). Don't
count them when reading the NIC counters - it doubles the count.  Read the
NIC counters to prevent counter overflow interrupts, but don't add them to
the interface counters.  Don't bother reading the upper counts because they
are just latched when reading the totals.

Fixes final part of PR#11549.
2002-04-06 19:28:01 +00:00
tsutsui
dcdba279be Change RAMDISK to define only MEMORY_DISK stuff and just include GENERIC. 2002-04-06 18:33:03 +00:00
manu
8e8b498d9c Changed irix_siginfo field names to make them closer to svr4 names (and to
original IRIX names too)
2002-04-06 18:08:31 +00:00
manu
79166f2808 iAdded warning printtf just in case something calls the stubs functions here 2002-04-06 18:03:17 +00:00
matt
2bf9358fc0 Don't use the tqh_ field names, instead use the correspond TAILQ_* macro. 2002-04-06 08:04:17 +00:00
thorpej
4d78508c9d Back-out rev 1.75 (pmap_extract() rewrite), and fix the (minor)
bug that revision intended to fix properly.
2002-04-05 22:17:41 +00:00
thorpej
f92912592f Reenable DMA on the Symphony/Winbond chips. The lossage I saw was
due to a broken pmap_extract() on ARM.
2002-04-05 22:16:28 +00:00
mycroft
aa29eff103 Regen. 2002-04-05 20:38:31 +00:00
mycroft
c1928e026d Update some ServerWorks and VIA IDs. Add the ServerWorks CSB5 southbridge and
the Apollo ProMedia 133 chipset.
2002-04-05 20:37:45 +00:00
thorpej
60e2bbd09a Add support for the "CPUSaver" receive interrupt mitigating microcode
on the following PRO/100 chips:

	* i82558 step A4
	* i82558 step B0
	* i82559 step A0
	* i82559S step A
	* i82550
	* i82550 step C

The interrupt delay is configurable on all microcodable chips.  The
maximum "bundle" size (packet count) is configurable on all but the
i82558.

The microcode is enabled by setting IFF_LINK0 on the interface.

Derived from code in FreeBSD.
2002-04-05 19:51:04 +00:00
bouyer
e5727031fb Implement mstohz() as discussed on tech-kern, and use it in SCSI drivers
to convert xs->timeout to callout() parameter.
2002-04-05 18:27:45 +00:00
thorpej
991426d348 * Rewrite the 32-bit ARM pte.h based on the ARM architecture manual.
Significant cleanup, here, including better PTE bit names.
* Add XScale PTE extensions (ECC enable, write-allocate cache mode).
* Mechanical changes everywhere else to update for new pte.h.  While
  doing this, two bugs (as a result of typos) were fixed in

	arm/arm32/bus_dma.c
	evbarm/integrator/int_bus_dma.c
2002-04-05 16:58:01 +00:00
toshii
df12f106c5 Make recording functional again. 2002-04-05 16:16:43 +00:00
bouyer
f6ef011e7e Properly identify LM81. From Sergey Svishchev in PR kern/13420. 2002-04-05 16:11:47 +00:00
thorpej
b0e1d51672 Microcode for Intel i8255x 10/100 Ethernet interfaces. This optional
microcode implements an interrupt mitigation function for several
specific revisions of the i8255x family.

From FreeBSD.
2002-04-05 05:35:46 +00:00
gmcgarry
61d1eb003e actually, we didn't want to print pa, not kva 2002-04-05 05:31:42 +00:00
thorpej
f4f37ed5f5 Define the command block used for loading microcode into the chip. 2002-04-05 05:29:05 +00:00
mycroft
cdb5a13a85 With certain 21140 and 21143 SROM formats, OPMODE_FD was never being set when
the interface was wired to full-duplex mode.  Duh.
Also, add OPMODE_TTM to OPMODE_MEDIA_BITS, to insure that it is changed when
we switch between 10 and 100.
2002-04-05 04:48:40 +00:00
thorpej
4185029680 Use pte_cache_mode instead of PT_CACHEABLE. 2002-04-05 03:57:16 +00:00
thorpej
cac428e2af Use pte_cache_mode instead of PT_CACHEABLE; 2002-04-05 03:55:36 +00:00
thorpej
388879eeaf Use pte_cache_mode instead of PT_CACHEABLE. 2002-04-05 03:42:39 +00:00
uwe
6142b898f3 Clean up includes. 2002-04-05 03:29:05 +00:00
mjacob
1ed2e354da Fix:
...trm.c:578: warning: too many arguments for format

problem.
2002-04-05 03:13:48 +00:00
mjacob
83f4603dc7 Correct put of fc4_types to 32 bits, which is what it is. 2002-04-05 02:09:39 +00:00
simonb
2d7c87ebfb Add a "CPU_MIPS_DOUBLE_COUNT" flag for CPUs where the cp0 count register
ticks over at half the CPU clock speed, and set this flag for the known
CPUs with this behaviour.  Better names for this flag gratefully accepted!

Also adjust comment about known R4000/R4400 revisions.
2002-04-05 01:22:16 +00:00
heinz
e4affd8cbf Add polish keymaps pl_din and pl_us by Pawel Chwalowski <pch@polo.po.opole.pl>.
This solves part of PR port-amiga/15980
2002-04-05 01:05:03 +00:00
ichiro
1fb4491ea4 Upps, fix typo 2002-04-05 00:59:38 +00:00
heinz
bac60291de add polish keymaps created by Pawel Chwalowski <pch@polo.po.opole.pl> 2002-04-05 00:55:06 +00:00
ichiro
7d1236beff fix minor bugs for lucent cards. (point out from Warner Losh) 2002-04-05 00:54:51 +00:00
simonb
2239aed3bd Fix a tyop in a comment. 2002-04-05 00:19:56 +00:00
thorpej
d69bb1b3d9 Hm, Symphony/Winbond support doens't seem to work quite right
yet; disable it for now.
2002-04-04 23:47:39 +00:00
mjacob
c8513a96b0 Redo fabric evaluation to not use GET ALL NEXT (GA_NXT). Switches seem
to be trying to wriggle out of supporting this well. Instead, use
GID_FT to get a list of Port IDs and then use GPN_ID/GNN_ID to find the
port and node wwn. This should make working on fabrics a bit cleaner and
more stable.

This also caused some cleanup of SNS subcommand canonicalization so that
we can actually check for FS_ACC and FS_RJT, and if we get an FS_RJT,
print out the reason and explanation codes.

We'll keep the old GA_NXT method around if people want to uncomment a
controlling definition in ispvar.h.

This also had us clean up ISPASYNC_FABRICDEV to use a local lportdb argument
and to have the caller explicitly say that a device is at the end of the
fabric list.
2002-04-04 23:38:43 +00:00
thorpej
769ca97e2b Address Intel 82801BA/82801BAM Specification Update, Errata #30:
The ICH on-board Ethernet and some i82559 chips have a bug which
will cause a PCI protocol violation if the chip receives a CU_RESUME
command as it is entering the IDLE state by deasserting #CLKRUN.
(This is the so-called "resume bug" that we previously had an incomplete
work-around for on ICH chipsets.)

The work-around is to disable Dynamic Standby Mode, such that the
chip will never deasert #CLKRUN.  Dynamic Standby Mode is disabled
by clearing a bit in the EEPROM and updating the EEPROM (and EEPROM
checksum).

Unfortunately, the chip will only consult the EEPROM setting after
a PCI bus reset, so a system reboot is required once the EEPROM
has been updated (the EEPROM update only needs to happen once,
and the driver usses a warning instructing the user to reboot the
system once the work-around has been applied).

Issue pointed out by David Brownlee, and code more-or-less lifted
from FreeBSD.
2002-04-04 23:15:43 +00:00
lukem
230e0c2c3e Decommission pmax MD installboot in favour of MI installboot.
(Woo! pmax first again - hi Simon! :-)
2002-04-04 22:59:33 +00:00
christos
e9c4f70b2f use lsi_ like all other linux emulations. 2002-04-04 22:17:29 +00:00
bjh21
8fb1e55430 ... and lock.h. 2002-04-04 21:29:04 +00:00
thorpej
4a9f5c0fc7 Move the code which shifts bits into the EEPROM into its own function. 2002-04-04 21:11:16 +00:00
matt
0bdb3fb645 no need for defflag NETWINDER so nuke it 2002-04-04 21:09:59 +00:00
bjh21
27e0adf1e5 Install endian_machdep.h. 2002-04-04 20:29:35 +00:00
bjh21
4dd9cf6391 Install elf_machdep.h. 2002-04-04 20:18:01 +00:00
bjh21
fedfd6d298 Install reloc.h. 2002-04-04 20:12:30 +00:00
uwe
9a60c7f6ae Nuke ugly ms-IIep specific hack now that mspcic knows about phys->pci
address translation.
2002-04-04 18:50:28 +00:00
uwe
213d441358 Instead of relying on numerology set up by PROM, actually implement
bus_space_map/mmap methods that do proper PCI to phys address translation.
2002-04-04 18:47:23 +00:00
uch
cb4570f5f5 remove obsolete functions, decralations and structure. 2002-04-04 18:12:23 +00:00
uwe
118ae09c44 Fix error message. 2002-04-04 17:45:24 +00:00
jdolecek
46d335a320 move wi_pci_reset() from ic/wi.c to pci/if_wi_pci.c, where is belongs 2002-04-04 17:43:31 +00:00
uwe
3e855fb4c2 Prettify error message. 2002-04-04 17:41:09 +00:00
jdolecek
e9ee3f796e fix sligh confusion on whether or not to supply dv_xname to printf() in
error cases of attach
Noticed in kern/16197 by George E Sollish.
2002-04-04 17:30:32 +00:00
thorpej
22e72c8da2 Don't need to mask w/ PG_FRAME. 2002-04-04 16:56:36 +00:00
ragge
04b9c4c25a Fix crash problems reported by mrg and bouyer in separate mails. 2002-04-04 16:40:14 +00:00
skrll
d859e37a42 Remove trailing whitespace. 2002-04-04 16:04:22 +00:00
hannken
747c45e3e4 Avoid dereferencing null pointer. `data->name == NULL' means default font. 2002-04-04 13:08:35 +00:00
skrll
c0e4084210 Fix compile problem when DDB not defined. 2002-04-04 12:39:55 +00:00
tron
d09c25ca9a Set default kernel version of Linux emulation to 2.4.18 on the i386 port.
It has been successfully tested using SuSE 7.3 libraries and binaries with
many applications.
2002-04-04 09:32:11 +00:00
ichiro
ed93d4f3b5 space/TAB cosmetics 2002-04-04 07:15:17 +00:00
ichiro
7fadd48a2f using table driven for Prism2 family IDs/Names. 2002-04-04 07:06:16 +00:00
chs
e340f273c4 add support for Cogent EM100 (aka Adaptec ANA-6910) TX and FX. 2002-04-04 05:45:54 +00:00
thorpej
ce482eca0a Eliminate a mask against PD_MASK. 2002-04-04 05:42:29 +00:00
thorpej
60b63aec95 There is no need to mask VAs and PAs w/ PG_FRAME to clear
the lower bits; UVM provides us page-aligned addresses for
everything.  For the paranoid, we'll leave KDASSERT()'s in
that check for this if the kernel is built with DEBUG.

Low-hanging fruit that shaves some cycles.
2002-04-04 04:43:20 +00:00
thorpej
e539ef03aa Rename flags that are really part of the pv_entry/mdpage into
pmap.h and give them more descriptive names and better comments:
* PT_M  -> PVF_MOD (page is modified)
* PT_H  -> PVF_REF (page is referenced)
* PT_W  -> PVF_WIRED (mapping is wired)
* PT_Wr -> PVF_WRITE (mapping is writable)
* PT_NC -> PVF_NC (mapping is non-cacheable; multiple mappings)
2002-04-04 04:25:44 +00:00
thorpej
263270d684 Catch a couple more vector page mapping manipulations. 2002-04-04 02:06:46 +00:00
thorpej
605e664094 vfs_mountroot(): provide more info when we panic. 2002-04-04 01:44:30 +00:00
reinoud
c85015ee71 Also provide differential coordinate updates... pitty it can't be choosen
or specified in wscons itself. The absolute coordinates are broadcasted
_after_ the relative so a program that takes both won't get confused.
2002-04-04 01:03:23 +00:00
thorpej
20b1bb2655 Clean up handling of the vector page on 32-bit ARM systems:
* Don't refer to VA 0, instead refer to a new variable: vector_page
* Delete the old zero_page_*() functions, replacing them with a new
  one: vector_page_setprot().
* When manipulating vector page mappings in user pmaps, only do so if
  the vector page is below KERNEL_BASE (if it's above KERNEL_BASE, the
  vector page is mapped by the kernel pmap).
* Add a new function, arm32_vector_init(), which takes the virtual
  address of the vector page (which MUST be valid when the function
  is called) and a bitmask of vectors the kernel is going to take
  over, and performs all vector page initialization, including setting
  the V bit in the CPU Control register ("relocate vectors to high
  address"), if necessary.
2002-04-03 23:33:26 +00:00
thorpej
d36a56b03a Define the two possible addresses for the ARM vector page. 2002-04-03 22:12:52 +00:00
thorpej
d8ab0d1e84 Remove unused extern decls. 2002-04-03 21:06:21 +00:00
thorpej
a1808a4556 Add support for the Netwinder on-board 21143 (but don't try using it
yet; there are still some problems).
2002-04-03 20:52:42 +00:00
thorpej
6d66c469bf Add a comment summarizing the post-ARM3 CP15 registers. 2002-04-03 19:57:48 +00:00
thorpej
7739f7410a Always provide kernel_text. 2002-04-03 17:30:50 +00:00
christos
cb483bd247 make this compile on archs that don't define linux signals. 2002-04-03 17:18:21 +00:00
christos
f28b55d327 provide missing types for arch's that don't have specific linux_types.h 2002-04-03 17:13:32 +00:00
thorpej
5eb4257b8e Add bus master DMA support for the Symphony Labs 82C105 PCI IDE
controller.  This part is also found in the Winbond 83C553 Southbrige.
2002-04-03 17:02:21 +00:00
christos
aa3369abe2 don't bail out if we don't have an arch/siginfo.h because we are being used
from userland.
2002-04-03 17:02:12 +00:00
darrenr
ff961593ca apply patches from PR#10170 2002-04-03 16:34:11 +00:00
reinoud
9fc5cf5824 Fix the mmap'ing of the screen memory. The way it was implemented
completely sucked... I wonder how it was even working (....)

Thanks to Jason for pointing out the problem.
2002-04-03 16:03:50 +00:00
reinoud
943880cea2 Rototil and fix the pmap_extract function. It wouldn't even return data
when the part being quiried was mapped with a section (!) giving weird
results and had become a mess of goto's.

Complete rewrite and cleaned up the `goto'-jungle entirely ... ripped all
goto's. The resulting code is much better to read and might even have a
small performance gain.
2002-04-03 15:59:58 +00:00
bjh21
6d7ebd9ee6 <bebox/pte.h> has gone too. 2002-04-03 15:53:21 +00:00
ichiro
ff941b5271 s/WI_NIC_3842/WI_NIC_3842_EVA 2002-04-03 15:43:14 +00:00
ichiro
a07b331747 add more IDs of PRISM family 2002-04-03 15:33:20 +00:00
bjh21
ed0cb3d8fc Minimal makefile to ensure that arch/amigappc/include is picked up by
"make includes".
2002-04-03 14:37:54 +00:00
bjh21
dd0fa209d5 <bebox/bat.h> has been removed. 2002-04-03 14:28:57 +00:00
tron
9121bc2ec4 Fix a cut and paste error in the emulation of getresgid(2): it returned
the effective user id as effective group id.
2002-04-03 14:28:36 +00:00
simonb
fab269a0eb Backout the .sdata to .data change for now; this broke compiling of
hpcmips kernels.
2002-04-03 13:57:47 +00:00
simonb
2548187935 Don't make arch/mips/mips/mips_mcclock.c mandatory for all mips ports
with an mcclock - pmax is the only one currently using this.
2002-04-03 13:16:13 +00:00
fvdl
221107a13b Use shmat1(), and tell it to find removed segments. 2002-04-03 11:54:37 +00:00
fvdl
c2bf6c9615 Split off the backend of the shmat system call, and find removed segments
if requested. This enables the linux compat code to be bug compatible
(under Linux, shmat() to a removed segment works).
2002-04-03 11:53:01 +00:00
fvdl
9edfbd43ca Add prototype for shmat1() 2002-04-03 11:50:51 +00:00
msaitoh
55aa2c46b9 sync with i386/include/pmap.h rev. 1.45:
make dangerous pmap_copy() and pmap_move() no-op.
2002-04-03 10:38:51 +00:00
msaitoh
66227882a3 sync with i386/i386/pmap.c rev. 1.94:
make dangerous pmap_copy() and pmap_move() no-op.
2002-04-03 10:37:48 +00:00
fvdl
7fc44e13a8 Allocate the right size for the native gid_t array in setgroups16. 2002-04-03 10:17:01 +00:00
fvdl
8cc2d64d7a Include opt_malloc_debug.h so that debug_malloc will actually be used
when enabled, thankyouverymuch.
2002-04-03 09:45:22 +00:00
simonb
8bcefa5e82 Fix a typo that stopped this compiling in the !LKM case.
Remove the buf2 variable from sysctl_sysvipc(), which was only ever
 assigned to but not used.
2002-04-03 08:06:17 +00:00
lukem
f8df2d6332 remove boot_block stuff from include/disklabel.h, and migrate to
alpha_boot_block stuff in dev/dec/dec_boot.h
2002-04-03 06:16:01 +00:00
thorpej
e96da4cdff Fetch the memory size from the NeTTrom boot info. 2002-04-03 05:37:33 +00:00
thorpej
4de06fbd8a Fix some of the boot info fields. 2002-04-03 05:37:00 +00:00
thorpej
ce4a4a40de Add COMPAT_LINUX. 2002-04-03 04:23:04 +00:00
jmc
a3c3d336ee Only dump the rom up to ab_retlen in error cases. Also add in
P1212_ALLOW_VENDOR_DIRECTORY_TYPE to the flags passed to the p1212 parser
2002-04-03 04:15:59 +00:00
lukem
38b5c3b216 - Add alpha boot block info, derived from sys/arch/alpha/include/disklabel.h,
adding "alpha_" / "ALPHA_" prefix to items as appropriate.  Rename
  CHECKSUM_BOOT_BLOCK() -> ALPHA_BOOT_BLOCK_CKSUM().  Add cgd's copyright
  from disklabel.h.
- Clean up a couple of comments.
2002-04-03 04:05:05 +00:00
simonb
ccc73cca48 Put a couple of variables in the data section, not the sdata section. 2002-04-03 04:04:31 +00:00
simonb
6fbaedb430 Use the new 2way mips{32,64} cache ops. 2002-04-03 03:55:07 +00:00
simonb
67fd901d75 Include 2way cache ops for mips{32,64} CPUs. 2002-04-03 03:51:00 +00:00
simonb
078e9477f0 Add prototype for badaddr64(). 2002-04-03 03:48:33 +00:00
simonb
85c30a703d Remove a commented-out debug printf. 2002-04-03 03:47:53 +00:00
thorpej
2abf991267 Add kerfs, procfs, fdesc. 2002-04-03 03:25:55 +00:00
thorpej
bfca87bb38 Clean up Netwinder bootstrap:
* Put the code that runs with the MMU off in a separate section (.start).
* Use a linker script to set the VMA/LMA appropriately for each section.
* Fix kernel page table allocation and mapping of kernel text/data/bss.

...and now that kernel images > 2MB work:
* Add SYMTAB_SPACE to the GENERIC kernel so that we have DDB symbols.
* Use dbsym to load the kernel's DDB symbol area.
2002-04-03 02:06:33 +00:00
reinoud
d6a3919c2c In analogy to L2_LPAGE_SIZE add L2_SPAGE_SIZE .... 2002-04-03 00:46:53 +00:00
wrstuden
a36c34f662 In the SETATTR code, if the changes to a & m time are exclusively
set via NFSV3SATTRTIME_TOSERVER and not NFSV3SATTRTIME_TOCLIENT,
add VA_UTIMES_NULL to the va_vflags. This reflects our policy
where we're much more liberal about who can set a & m times to 'now'
than we are about who can set them to a specific time.

Should close PR 15597 from Martin Husemann. Patch is based on the
one Matthias Drochner gave in the PR.
2002-04-03 00:20:15 +00:00
christos
1a0ee78709 make sure that we don't die if attach fails and we pull the card. 2002-04-03 00:18:31 +00:00
matt
f8b9dbe468 Add some MPC745x L3CR cache definitions. 2002-04-03 00:12:41 +00:00
matt
830666e31e Clean the icache for pages when they are entered as executable and before
they were either not mapped at all or mapped as non-executable.  Round
memory regions in pmap_bootstrap.
2002-04-03 00:12:07 +00:00
matt
7e121bd39d Properly print out 745x cache information. 2002-04-03 00:09:52 +00:00
rafal
8fcad97302 Fix up linux a.out compat entry after move of emul-related sysctl handler
to struct emul.
2002-04-02 23:56:17 +00:00
christos
fa33d13de9 Don't blow up if we don't have a machine dependend linux_signal.h.
kdump includes linux_signo.c
2002-04-02 23:25:07 +00:00
christos
1303311a31 don't forget to set fs and gs in the signal handler context. this needs
to be pulled up.
2002-04-02 22:33:19 +00:00
christos
eda21311fd save/restore fs and gs; this should be pulled up. 2002-04-02 22:32:16 +00:00
augustss
97d7bb77fe Alphabetize. 2002-04-02 20:48:01 +00:00
augustss
f3a93e43e7 Add urlphy. 2002-04-02 20:46:10 +00:00
manu
4bca6e2fd0 Added fsync 2002-04-02 20:29:52 +00:00
jdolecek
ee37f0c738 rename sysctl_linux() to linux_sysctl() and hook it into emul_linux 2002-04-02 20:23:43 +00:00
jdolecek
3ffbb4470d make emul_sysctl() work with emulations loaded via LKM, properly bound check
name[0]
2002-04-02 20:21:51 +00:00
jdolecek
ebd670f0bc move emulation-specific sysctl hook from struct execsw to struct emul,
where it belongs
2002-04-02 20:19:59 +00:00
jdolecek
2e327b16be expose emul_search() 2002-04-02 20:18:06 +00:00
manu
062e23b4e2 Added IRIX fcntl(F_GETBSDLK) and fcntl(F_GETBSDLKW) 2002-04-02 19:58:38 +00:00
jdolecek
83bb6f6dd7 Changes to make it less likely to need to be revisited later again:
* fdesc_attr(): don't panic for 'unknown' descriptor types, rather use
  (*fp->f_ops->fo_stat)() hook, as for DTYPE_SOCKET and DTYPE_PIPE
  XXX perhaps use different vnode type than VBAD for these?
* fdesc_setattr(): just return 0 regardless of type, rather than paniccing
  for 'unknown' descriptor types
2002-04-02 17:46:06 +00:00
fvdl
03295688de Return 0 when no interrupt was handled. 2002-04-02 16:02:38 +00:00