Commit Graph

55210 Commits

Author SHA1 Message Date
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