Commit Graph

33256 Commits

Author SHA1 Message Date
bouyer a15ba40c30 Bump __NetBSD_Version__ to match osrelease.sh. Thanks Bernd :) 1999-11-19 13:32:39 +00:00
bouyer 89e847a90f kernel interface changed, bup version number (what will come after
1.4Z ? :)
1999-11-19 13:05:06 +00:00
mrg 9f1959ab2b split the "asc" and "tcds" searching into two separate sections and
keep a "tcdsdev" of the booted tcds device.  make sure that the "asc"
is the child of the tcds.  this fixes boot device detection on dec
5000/400 (prolly 400-900) machines in the presense of a tcds option
card, which would use the right tcds chip & disk scsiid of the last
attached tcds -- which meant it would choose the wrong disk, or not
find the boot device at all if the corresponding scsiid was unused in
the last attached disk.

XXX: this may need to be copied to dec_3000_300.c but i have no idea
as i can not test this hardware at all...

fixes PR#8771 by myself.
1999-11-19 10:49:46 +00:00
bouyer 3a220103e8 Adapt printf format for 64bit stats counters. 1999-11-19 10:42:48 +00:00
bouyer f86517a031 Update protocoles and interfaces stats counters to 64bit.
RTM_IFINFO is now 0xf, 0xe is RTM_OIFINFO which returns the old (if_msghdr14)
struct with 32bit counters (binary compat, conditioned on COMPAT_14).
Same for sysctl: node 3 is renamed NET_RT_OIFLIST, NET_RT_IFLIST is now node 4.
Change rt_msg1() to add an mbuf to the mbuf chain instead of just panic()
when the message is larger than MHLEN.
1999-11-19 10:41:41 +00:00
jun c090b6a417 add comments
XSERVER
	INSECURE
	SOFTDEP
1999-11-19 06:25:11 +00:00
matt b7af02bb1b defopt SOFTDEP 1999-11-19 05:49:53 +00:00
simonb 95d4e16c43 Remove function declarations already declared in ibusvar.h and
fix typo in dec_3100_intr_*() declarations.
1999-11-19 04:34:01 +00:00
itohy 7be83cbb7c Oops, I misspelt a macro name. 1999-11-19 03:54:08 +00:00
nisimura dad420bf58 Move declarations of 3100/5100 ibus interrupt establishment routines
to ibusvar.h
1999-11-19 03:15:28 +00:00
simonb 682b4e3665 Include SCSI version of disk in device display. 1999-11-19 03:14:22 +00:00
simonb af2a80f51c Show the SCSI version of the tape drive. Also, when printing out info
about the tape drive, only use one ``printf("\n");'' at the end rather
than having lots of \n's.
1999-11-19 03:04:39 +00:00
matt 1d740db7d2 Not all platform have devices which need isadma. Make the isa_dmainit
call conditional.
1999-11-19 02:40:25 +00:00
simonb 9dacfe6b24 Don't need extern with function declaration. 1999-11-19 02:35:40 +00:00
simonb 1dd2a74d0a Only all the kbd/mouse init functions if NRASTERCONSOLE > 0. 1999-11-19 02:17:01 +00:00
simonb 88673ee539 Only call tcfb_cnattach() if NRASTERCONSOLE > 0. 1999-11-19 02:16:06 +00:00
simonb 253ea37824 Include "opt_dec_{3,5}100.h" so we know what models are
configured.  Also fix prototypes for dec_3100_intr_establish()
and dec_3100_intr_disestablish().
1999-11-19 02:11:47 +00:00
nisimura adf0157d64 Fix system type case analysis error; pointed by John.P.Darrow@wheaton.edu. 1999-11-19 01:28:08 +00:00
lonhyn 090c4d2e66 Program to convert back and forth between PPM and CHRP boot icon images. 1999-11-19 00:43:20 +00:00
augustss 3386c68b46 Cosmetic changes and some small improvements. From FreeBSD and Nick Hibma. 1999-11-18 23:32:25 +00:00
joda b578473fae include dev/cardbus/cardbusdevs.h 1999-11-18 16:57:41 +00:00
joda 88d26dd881 regen 1999-11-18 16:03:43 +00:00
joda 08bc681319 fix bogus comment 1999-11-18 16:03:12 +00:00
minoura 13d97a81a4 pmap_enter() change. 1999-11-18 15:19:26 +00:00
joda 175087230a use CARDBUS_VENDOR_INVALID 1999-11-18 15:11:15 +00:00
joda 8c62b47d9f regen 1999-11-18 15:09:59 +00:00
joda 40f1a07541 add INVALID vendor, and an Intel modem 1999-11-18 15:09:30 +00:00
minoura e8a82e3d7e Do not reset SCSI bus. 1999-11-18 15:03:03 +00:00
enami 38acee1010 Cope with new return value of pcmcia_scan_cis(). (Actually, it's not
so new but at least newer when I wrote these code).
1999-11-18 14:25:28 +00:00
enami f38640f00f Add some comments and reformat comment which doesn't confirm KNF. 1999-11-18 14:20:11 +00:00
minoura 8ae197322f Sync w/ GENERIC (options SOFTDEP).
Add IPv6 options to ALL.
1999-11-18 14:09:40 +00:00
minoura b799f7bb46 Remove MAPPEDCOPY (somewhat buggy?). 1999-11-18 14:08:24 +00:00
oster 5fd68b5d02 We must initialize bp->b_dep in InitBP(). 1999-11-18 13:28:06 +00:00
enami 13cd632041 Define i_e2fs_rdev. 1999-11-18 08:26:21 +00:00
enami 068ded93c6 Cosmetic changes; fix indentation and usage of white spaces. 1999-11-18 08:23:22 +00:00
jun 46b5560f98 and add sys/arch/mips/mips/fpemu.c 1999-11-18 06:50:17 +00:00
jun 0e8bb20fd2 on port-mips@netbsd.org:
Shuichiro URATA <ur@a-r.org> makes kernel softfloat emulation code.

http://www.a-r.org/~ur/softfloat1116.diff.gz

is Patch for
      sys/arch/mips/conf/files.mips
      sys/arch/mips/mips/fp.S
      sys/arch/mips/mips/fpemu.c
      sys/arch/mips/mips/genassym.cf
      sys/arch/mips/mips/locore.S
      sys/arch/mips/mips/mips_machdep.c
      sys/arch/mips/mips/process_machdep.c
      sys/arch/mips/mips/trap.c
      sys/arch/mips/mips/vm_machdep.c
After apply this patch,pmax package binary works on hpcmips!
1999-11-18 06:47:48 +00:00
enami f6b8114fc7 Initialize the vnode_hold_list correctly. 1999-11-18 05:50:25 +00:00
is 082c2a59eb - strings handled by the common functions sysctl_string() and sysctl_rdstring()
are handled as arrays; that is, a truncated old value is returned, alongside
  with ENOMEM, if the buffer is too small.

- in all int, quad, and single struct cases, and all specials handled inside
  this file, oldlenp semantics are now as documented in the manual page, that
  is, a NULL oldp, but non-NULL oldlenp returns the needed size

[I had to change the oldlenp handling, so I thought I should make it as
 advertized. Formerly, the subroutines would not know when a NULL oldlenp
 was passed, do the work anyway, and the value would be thrown away.]

This is needed as a first step to make gethostname() and getdomainname()
conform to its own manual page and SUSV2. (See pr 7836 by Simon Burge)
1999-11-17 23:24:54 +00:00
augustss cdaec29859 A few more purely stylistic changes that I missed in the last round. 1999-11-17 23:00:49 +00:00
augustss 08aacd4e6f Regen. 1999-11-17 22:59:30 +00:00
augustss 206c85df58 Add CATC analyzer. 1999-11-17 22:59:04 +00:00
kleink 4c461e0055 s/completition/completion/ 1999-11-17 22:53:47 +00:00
tron 6bb7163ea2 Fix typo. 1999-11-17 20:41:27 +00:00
perseant ff33b3365d Fix spllevel problem with superblock exclusion and with segment write throttle.
May address PR#8383.
1999-11-17 20:08:30 +00:00
thorpej 7f28924acc If we see a bogus $PIR table entry, just ignore it. The MPIIX has
entries for the IRQs used by the IDE controller, which aren't really
PCI IRQs (they're ISA compat IRQs), and thus have link values that
don't make a lot of sense.
1999-11-17 18:55:15 +00:00
matt a56a96a888 #elifdef ??? Change to #elif defined(__ELF__) 1999-11-17 18:08:01 +00:00
thorpej 916d6aaa36 Use the common MII bit-bang module. 1999-11-17 17:56:52 +00:00
thorpej 94407b9f8f Define the `mii_bitbang' attribute, and give it to the `ex' driver. 1999-11-17 17:56:00 +00:00
thorpej 6c50cb64e1 Common module for bit-bang'ing the MII. 1999-11-17 17:47:59 +00:00
kleink eac5784583 Move signal management code common to all PowerPC platforms (sendsig(),
sigreturn(), sigcode) to a single place in the shared powerpc directory.
(The struct sigcontext etc. definitions were already being shared.)
1999-11-17 14:56:10 +00:00
kleink c76614ee74 One more pmap_enter() catch-up. 1999-11-17 14:48:43 +00:00
soren b4c9eea282 Add newline in debug printf. 1999-11-17 12:34:52 +00:00
fvdl ba7e45647d Initialize buffer dependencies list for soft updates when initializing
a new buffer.
1999-11-17 09:34:03 +00:00
thorpej ce25407921 Make this a lot more like the PCI front-end. 1999-11-17 08:49:16 +00:00
mrg e69f5159aa fix a problem in previous: avoid using shadow variable names. 1999-11-17 08:43:53 +00:00
soren f361f1b1b8 Also disable EX_CONF_INTPHY on the B model. 1999-11-17 08:42:06 +00:00
thorpej 5bd0644a68 Make the MII code match the `ep' driver's (*again*). 1999-11-17 08:03:30 +00:00
thorpej e1a760a4a7 The 3c575-TX does *not* have an internal PHY. 1999-11-17 07:59:57 +00:00
thorpej 3f761bc3a7 Enable PCI bus renumbering, and add some CardBus Ethernet cards. 1999-11-17 07:34:48 +00:00
thorpej 11d76dfece Add PCI bus renumbering code. 1999-11-17 07:34:15 +00:00
thorpej 0d79886ad5 Fix up the PCI bus numbering after fixing up interrupts. 1999-11-17 07:33:41 +00:00
thorpej f4b4d4508a Code from UCHIYAMA Yasushi's PCI BIOS patches to renumber the PCI
busses.
1999-11-17 07:32:58 +00:00
chs 7fa6c707d3 update a prototype for the new pmap_enter(). 1999-11-17 06:16:49 +00:00
jun b2557d295c add:
#options        SOFTDEP         # FFS soft updates support.
1999-11-17 03:56:38 +00:00
simonb fca16d1571 Move the "Attach the interface" section after printing the mac address
and buffer sizes.  Stops the ipv6 attach info from messing up the
other driver info.
1999-11-17 03:42:24 +00:00
nisimura 8bcd9ac481 Consistent panic messages when erroneous kernel configurations are found. 1999-11-17 03:42:20 +00:00
jun 559f1ca662 re-generating isapnpdevs.c isapnpdevs.h 1999-11-17 02:03:10 +00:00
thorpej 92fcbce96b Add my laptop's configuration file as an example. 1999-11-17 01:24:49 +00:00
thorpej ad161afb12 Add glue for BIOS32 and PCI BIOS. 1999-11-17 01:22:29 +00:00
thorpej 4bfa60e3d3 Initialize BIOS32 and PCI BIOS as appropriate. 1999-11-17 01:22:09 +00:00
thorpej d6d9fbe240 Interrupt router drivers from UCHIYAMA Yasushi's PCI BIOS patches,
cleaned up and reworked a bit be me.
1999-11-17 01:21:20 +00:00
thorpej 2026e5f71b PCI interrupt routing fixup code, from UCHIYAMA Yasushi's PCI BIOS
patches, cleaned up and heavily reworked by me.  Basic algorithm is
the same, although the code structure is now quite different.

Main differences:
- Initialization path is totally different.
- We use the `compat router' information, if present, to determine which
  PCI ICU driver we should use.
- Fixup configuration headers on devices not on bus 0.
1999-11-17 01:20:38 +00:00
oster e589155692 Remove some minor stuff that wasn't right, and wasn't even really used. 1999-11-17 01:16:37 +00:00
thorpej e345f0f17c Basic interface to the PCI BIOS and PCI Interrupt Routing table, separated
out from UCHIYAMA Yasushi's PCI BIOS patches, and fairly heavily reworked
by me.

Main differences:
- Only use the PCI BIOS to get the config mechanism and interrupt routing
  info for now.  No need to use the BIOS for PCI config access right now,
  since the old mechanism works fine, and this keeps the code smaller.
- PCI BIOS initialization code path is much different.
- Always use the $PIR table if it exists, and only fallback to the
  PCI BIOS 2.1 GetInterruptRouting call if it's not there.

This module does not include any of the fixup code; that is coming
in separate commits.
1999-11-17 01:16:36 +00:00
thorpej 4a98f5856e Basic interface to BIOS32. Separated from UCHIYAMA Yasushi's PCI BIOS
patches and cleaned up a bit.
1999-11-17 00:55:50 +00:00
nisimura dab18ce266 A file which escaped from 11/15 jombo commit work. 1999-11-17 00:10:00 +00:00
augustss ef8e85f177 Regen. 1999-11-17 00:09:48 +00:00
augustss 62058f9f6b Add the SBLive! joystick device. 1999-11-17 00:09:17 +00:00
augustss d37a1f8e3b Implement OSS_SOUND_MIXER_INFO. 1999-11-17 00:06:38 +00:00
augustss ffb29861c2 Add a few more diagnostics. 1999-11-16 22:19:03 +00:00
augustss 70ad5362d4 Fix a pointer test that I got wrong in the big code cleanup. 1999-11-16 22:15:50 +00:00
mjacob a7c74fb98f Re-add stub Qlogic F/W files so that life is easier when/if the new
Qlogic F/W copyright is approved.
1999-11-16 18:48:40 +00:00
mjacob 8cf9a14802 Add in a step to actually probe for MCPCIAs. This allows us to run on
4100s that only have two of four possible MCPCIAs.
1999-11-16 18:37:24 +00:00
mjacob 2981278f40 Add in a define for a MCPCIA bridge register that would be suitable for
probing for with badaddr(9).
1999-11-16 18:36:27 +00:00
mjacob ce28c5e558 Make sure a MCPCIA exists before trying to initialize it. Also make
sure a MCPCIA softc exists before trying to do post-config cleanup
on it.
1999-11-16 18:33:11 +00:00
matthias 87bb3a7b2b make this work again with -mrtd. 1999-11-16 18:16:53 +00:00
enami 0a4858667a Include sys/device.h so that this file compiles again; file dev/tc/tcvar.h
now contains the definition of tc_softc.
1999-11-16 12:26:42 +00:00
augustss c5019ec09a Add a quirk for a buggy Qtronix keyboard. 1999-11-16 12:08:38 +00:00
augustss b019d68caa Some minor changes from OpenBSD. 1999-11-16 12:04:28 +00:00
augustss 1d1d6b868d Mark an early Altec Lansing speaker as broken. 1999-11-16 11:39:48 +00:00
tron 073ee3b029 - Add IPv6 options and devices.
- Add commented out softdep option.
1999-11-16 10:22:42 +00:00
augustss 982eb1b4e6 Preallocate DMA buffers. Fixes problem reported by Hubert Feyrer. 1999-11-16 10:21:11 +00:00
dan 46ccd498df Add entries for we[01] (configured as for the i386 GENERIC) to enable
WD/SMC ISA ethernet cards to be used for installation and setup.
1999-11-16 07:37:43 +00:00
nisimura e810ae49c6 Resolve 3max IOASIC disguise; round #2. 1999-11-16 06:00:11 +00:00
jun 1e396f9b0b Support for Adaptec AVA-1502P
kern/8804 patch by NAKAGAWA, Yoshihisa
1999-11-16 05:10:54 +00:00
jun a525b9a12a Commit patch kern/8778
Subject: NEC PCI modem support
1999-11-16 03:15:17 +00:00
lukem a3b9423bb0 fix lp64 lossage 1999-11-16 03:06:06 +00:00
nisimura 7917bfc69d Back out a part of change in the previous commit; old driver uses it. 1999-11-16 02:48:24 +00:00
nisimura 5948b59226 Fix a typo in PX TC device identification case analysis. 1999-11-16 02:39:03 +00:00
nisimura fb43e6e177 Remove now defunct definitions and declaratins. 1999-11-16 02:34:30 +00:00
nisimura 1c6749cc03 Restore a change in 1.23 which I accidentally lost at the previous commit. 1999-11-16 02:16:04 +00:00
enami 7463c844a0 Make this file compile again; terminate the continuation line with backslash. 1999-11-16 02:13:02 +00:00
itohy 02ebc9e4d4 Support conversion from ELF, as well as from a.out. 1999-11-16 00:48:11 +00:00
matt 65e94f7ef4 close the i386 ibcs2 machdep.h; nothing really machine dependent in it yet. 1999-11-16 00:46:25 +00:00
wrstuden 0df8bcdc46 We need pciidereg.h to compile now. 1999-11-15 23:52:07 +00:00
thorpej a49d3ecb33 Add a macro to generate a class code given class, subclass, and interface.
From UCHIYAMA Yasushi's PCI BIOS patches.
1999-11-15 23:41:10 +00:00
simonb 6185320e31 Move px cdev_decl up with other frame-buffer type thingies. 1999-11-15 22:45:28 +00:00
augustss aef39844d9 Add quirk for speakers that pretend to support the audio class, but don't.
Add quirk for mice that geberate spurious button up events (XXX fix not fully
implemented).
1999-11-15 22:04:14 +00:00
drochner bb765a3924 "idx" is modified by pnpbios_getnode(); use the original value 1999-11-15 21:50:50 +00:00
mcr 4429aebc03 added support for BOCA 6port ISA adapter. 3x16552 with an
interrupt status register at yet-another-address.
	ioat0   at isa? port 0x220 irq 5 flags 1# BOCA 'ioat66' 6-port cards
	com*    at ioat? slave ?
1999-11-15 21:13:38 +00:00
tron 0ba519abd7 Fix typo in softdep code. 1999-11-15 20:55:48 +00:00
augustss 56d687b0e6 Add dev and function locators for the USB host controllers at pci. 1999-11-15 20:10:49 +00:00
dante 7d4ad0e29e Add WDTR, SDTR and TAGQ disable options 1999-11-15 20:07:21 +00:00
dante 6081361f0d Add WDTR, SDTR and TAGQ disable options 1999-11-15 20:03:50 +00:00
dante 70bd4a7d53 Let user enable/disable WDTR, SDTR and Tag Queuing from kernel config file 1999-11-15 19:55:53 +00:00
jdolecek f8e7ae2c5b remove some staff not needed anymore after SOFTDEP is merged;
also fixes bug introduced in previous commit - the check for VBAD device node
  added in rev 1.20 was accidentaly run AFTER v_specinfo was touched,
  making the check useless
1999-11-15 19:38:14 +00:00
fvdl 8bec119fcc Add commented out option SOFTDEP to all GENERIC kernels. 1999-11-15 19:10:44 +00:00
fvdl d116707af0 Add
prefix ../gnu/sys
cinclude "conf/files.softdep"
prefix

to all std.* files, so that soft dependencies can be activated using
"options SOFTDEP".
1999-11-15 19:00:25 +00:00
fvdl 0b1963121a Add Kirk McKusick's soft updates code to the trunk. Not enabled by
default, as the copyright on the main file (ffs_softdep.c) is such
that is has been put into gnusrc. options SOFTDEP will pull this
in. This code also contains the trickle syncer.

Bump version number to 1.4O
1999-11-15 18:49:07 +00:00
joda 5527afff97 (pccbb_pci_callback): no point in reading the bus number register
twice
1999-11-15 16:19:03 +00:00
nisimura cc2e1c302a - Reflect changes in ibus_intr_establish() definition.
- More concise way to initialize TC framebuffer device for console.
1999-11-15 09:54:41 +00:00
nisimura 0310fa6595 Very large scale change to sweep obstracles to remove 3MAX IOASIC disguise.
- Rework ibus device configuration and interrupt handler assignment.
- Remove TC device exposure in 'mainbus.c'
- Squash 'ibus_{3100,5100}.c' into a file; it can not cope with 3max.
- 'struct confargs' -> 'struct mainbus_attach_args'
Now about to remove tc_slot_info[] and tc_enable_interrupt inherited from
4.4BSD.
1999-11-15 09:50:17 +00:00
haya 3be097c31d Handle insertion and removal events more strictly. 1999-11-15 06:08:02 +00:00
haya 89d0a53e2c Fill 0 into CardBus base address registers before a card is
configured.
1999-11-15 06:01:11 +00:00
nisimura b06e451c53 - No need to include '<machine/autoconf.h>'.
- Nuke tc_badaddr() check from asc_tc because the existency check is already
  done for real TC devices.
- Nuke tc_badaddr() check from asc_ioasic because it is a builtin device
  found in all of IOASIC DECstations.
1999-11-15 05:25:57 +00:00
mhitch 5b9ba012af Set IOASIC interrupt mask when changing device interrupts. (Old
initialization appears to have enabled IOASIC interrupts, and then used
a separate mask in the interrupt routine to decide which ones to process.
New initialization doesn't enable all the required interrupts, and the
device interrupt enable/disable routine wasn't changing the IOASIC mask).
Also fix a printf() format type.
1999-11-15 03:54:53 +00:00
nisimura 8e061f4876 Make sure TC_IPL_xxx synonymous with IPL_xxx. 1999-11-15 03:45:50 +00:00
nisimura 9c3842f41b Relocate 'struct tc_softc' and several function declarations useful
to outsides of 'tc.c' into 'tcvar.h'.
1999-11-15 03:41:49 +00:00
kleink ac88fcbb17 G/c orphaned prototype. 1999-11-15 02:00:08 +00:00
thorpej 4ab7f024dc Fix a couple of pmap_enter() calls I missed. 1999-11-15 00:06:58 +00:00
augustss 3d275209e8 Add dev and function locators to cardbus devices. 1999-11-14 23:21:48 +00:00
thorpej 52806c2c2a Fix typo in previous. 1999-11-14 19:20:27 +00:00
soren b202ac1466 Allow SCSI_DELAY to be shorter than 2 seconds. 1999-11-14 18:06:09 +00:00
soren b0be8ac6ea Match ECP devices as well. 1999-11-14 18:03:38 +00:00
eeh 96ff315a99 Change one more instance of `access_type' to `flags' in pmap_enter(). 1999-11-14 17:25:01 +00:00
drochner d3d6c8d951 add commented out pnpbios entries 1999-11-14 13:31:04 +00:00
takemura d7d5ca87f3 Support the frame buffer in which white pixel value is zero. 1999-11-14 12:33:11 +00:00
thorpej 2cfc62b5ae Update for pmap API change. 1999-11-14 02:39:09 +00:00
thorpej 158b1a55f1 Add an "index" locator to the pnpbios `bus'. This allows us to wire down
device instances if there are more than one of a given type in the PnP
BIOS device table.

Add a pnpbios attachment for `lpt'.
1999-11-14 02:15:50 +00:00
augustss 5f8274b5a6 Get transfer status right on short transfers. From FreeBSD, Nick Hibma. 1999-11-13 23:58:01 +00:00
mhitch ed2a0c2648 Fix an additonal return in pmap_enter() that wasn't returning a value.
Use flags (formerly access_type) to set page reference/modified status.
Don't use the PG_CLEAN flag from the UVM when checking to see if a
writeable page has been marked as modified.
When updating page status to modified from the UTLBmiss handler, set
the referenced bit in addition to the modified bit.
1999-11-13 23:16:39 +00:00
mhitch 27a8dc486b Use console_debugger() to enter DDB on a break, instead of Debugger(). It
can now be controlled with sysctl on the 3100 & 5000/200.
1999-11-13 22:58:11 +00:00
mhitch babe07a8b5 When called from the debugger, the keyboard handler was returning 0 due to
a missed change when kdbMapChar() was changed to return a string.  Return
the correct chacter from the string.
1999-11-13 22:56:56 +00:00
thorpej 728d672378 Backout my libsa changes. 1999-11-13 21:33:12 +00:00
matt d4c19a672a adapt to jason new pmap_enter change 1999-11-13 21:32:25 +00:00
thorpej ee03a4e035 Backout my libsa changes. 1999-11-13 21:29:12 +00:00
thorpej 36ff5d93e8 Backout my libsa changes. 1999-11-13 21:17:56 +00:00
thorpej 1e544cc5eb Backout my libsa changes. 1999-11-13 21:06:46 +00:00
matt 3ca3e51df8 Nuke TCP_COMPAT_42. Use sysctl to enable it if required. 1999-11-13 20:56:14 +00:00