Commit Graph

14748 Commits

Author SHA1 Message Date
scottr
e14ea342e3 Some changes to make ADB work when compiled with -O2:
- extdms_done is modified by things outside of our direct control;
    it needs to be declared `volatile'
  - CountADBs() fails when we call it the second time.  We can work
    around this by telling extdms_init() how many ADB devices we have,
    only calling CountADBs() once.
1997-01-13 07:01:23 +00:00
mark
151fa15841 Use -x rather than -S for the linkflags as we are not using the NetBSD
linker.
1997-01-13 00:51:42 +00:00
mark
98ecd0ea70 Updated for the new bus space implementation.
Merge in the latest changes from the ISA lpt device.
1997-01-13 00:46:51 +00:00
mark
f0192d1f6c Removed duplicate PROFILE_ASM option. 1997-01-13 00:42:18 +00:00
mark
7384f7a76d Update for the new bus space implementation.
Merge in the latest changes from the ISA com device.
1997-01-13 00:40:54 +00:00
mark
110691d0cc Added files for the mainbus mapping and read/write routines. 1997-01-13 00:38:45 +00:00
mark
4812012263 Implement a set of functions that provide the bus space mapping and
read/write routines for the mainbus.
1997-01-13 00:37:51 +00:00
mark
52a7f33ad1 Updated for the new bus space implementation in bus.h
The mainbus bus space tag is passed in the mainbus_attach_args structure.
1997-01-13 00:35:47 +00:00
mark
0bebac783d Update for new bus space interface. This implementation is based on
cgd's alpha implementation. Bus tags now point to a structure of
function pointers to bus space routines rather than being an index to
one of several I/O methods making it simpler and more efficient in
handling many different busses and mapping schemes.
1997-01-13 00:33:36 +00:00
thorpej
db33863c33 Fix a couple of minor nits so that this compiles on the alpha.
Noticed by Matt Jacob (mjacob@feral.com).
1997-01-13 00:15:29 +00:00
leo
81fd2d7dc6 This should have been part of the keyboard-modifier changes. 1997-01-12 22:15:24 +00:00
thorpej
112e338d6b Fix botch in PA calculation for DIO-II devices. Bug noticed and fix
provided by Klaus Klein <kleink@layla.inka.de>, PR #3097.
1997-01-12 21:27:26 +00:00
mark
aef8299490 Document the packet filter major number. 1997-01-12 20:39:51 +00:00
mark
00e9f2af37 inline -> __inline 1997-01-12 20:28:04 +00:00
mark
23254f1c9e Added commented PFIL_HOOKS option. 1997-01-12 20:24:08 +00:00
leo
3e345f741d Use the mask register to block the interrups, not the enable register. This
enables the interrupt to be shared (with IDE for example ;-) ).
1997-01-12 15:46:37 +00:00
leo
4b8a9a883c Fix return value of the interrupt function. 1997-01-12 15:44:45 +00:00
leo
41a0638c86 Another part of the rd->md saga... 1997-01-12 15:41:24 +00:00
leo
c4ad7060c1 Fix the machine-type detection, the Falcon was detected as a Hades. Regroup
the hardware initialisations in a separate function and make sure
that the Midi-ACIA is properly initialized. This prevents MIDI traffic
to lockup the keyboard.
1997-01-12 15:40:14 +00:00
mark
672f9bc8a2 Added token 'Y' to print stack orientated nmemonics for {sl}dm r13, ... 1997-01-12 14:21:44 +00:00
ragge
2b8e7e782a std.vax readded, shall be here anyway. 1997-01-12 12:38:56 +00:00
mrg
b5f7cf1c76 if we fail to attach, abort before attaching the hook, not after. 1997-01-12 06:06:03 +00:00
ragge
09adf20559 Need a couple of extra #ifdef's to compile. 1997-01-11 13:50:20 +00:00
ragge
3026c5e35e Put in another external declaration. 1997-01-11 11:46:43 +00:00
ragge
eb0bc83700 Update due to changes to uba/mscp functions. 1997-01-11 11:34:39 +00:00
ragge
54e8120422 Oops, forgot an printf. 1997-01-11 11:31:57 +00:00
ragge
2a826b413f Prototype updates. 1997-01-11 11:31:26 +00:00
ragge
52c3b92063 Put common map in code here instead of lots of places. 1997-01-11 11:24:51 +00:00
ragge
3774ec6c5c Update due to prototype changes. 1997-01-11 11:23:09 +00:00
ragge
2b34ded4f8 Many minor bug fixes; mscp subsystem seems to work rather stable now. 1997-01-11 11:20:31 +00:00
ragge
59d5be04e9 Add EXEC_AOUT and EXEC_SCRIPT. std.vax not needed anymore; removed. 1997-01-11 11:15:38 +00:00
ragge
7bf599379e Prototype change of scanc needs change here also. 1997-01-11 11:07:52 +00:00
ragge
f98e31628a #define MAXBSIZE to some nice value. 1997-01-11 11:06:17 +00:00
matthias
27381f0aaf * Add cdevsw entry for /dev/ipl. 1997-01-11 11:00:41 +00:00
matthias
47fe16475c * Use confargs in probe and attach routines.
* Irq and address are now printed by mbprint.
1997-01-11 10:58:12 +00:00
mikel
aed485cdf2 add 'pseudo-device ccd' where necessary; PR kern/1830. 1997-01-11 09:11:37 +00:00
thorpej
7c14653df6 It's not safe to sleep in mdattach(), so don't pass WAITOK to malloc(). 1997-01-11 06:26:41 +00:00
thorpej
9df1988ac8 Implement the IP_RECVIF socket option: supply a datagram packet's incoming
interface using a sockaddr_dl in a control mbuf.

Implement SO_TIMESTAMP for IP datagrams.

Move packet information option processing into a generic function
so that they work with multicast UDP and raw IP as well as unicast UDP.

Contributed by Bill Fenner <fenner@parc.xerox.com>.
1997-01-11 05:21:07 +00:00
thorpej
746f138b3a Prototype sbcreatecontrol(). 1997-01-11 05:17:18 +00:00
thorpej
f1c90f5e13 Implement sbcreatecontrol(), a generic function to create a "control"
mbuf for presentation on a socket buffer.
1997-01-11 05:16:46 +00:00
thorpej
62dcdcfb89 Implement SO_TIMESTAMP socket option: receive a timeval timestamp
as a control message with a datagram.
1997-01-11 05:15:01 +00:00
thorpej
aceef5987f Merge into mainline, tidy up some debug code. 1997-01-11 04:47:31 +00:00
thorpej
d34ed2a09f Update from Matt Thomas <matt@3am-software.com>. Supports more
Tulip-based cards, including new SMC and Kingston cards.
1997-01-11 04:30:07 +00:00
leo
7a0c8fa119 Handle keyboard modifiers *before* handing the keycodes to either the
console driver or the DDB keyboard functions. This prevents annoyances
with out of sync modifier stati.
1997-01-10 21:24:25 +00:00
leo
2fa61d9691 Allow the control registers to be mapped too. 1997-01-10 21:00:36 +00:00
leo
1f4324fd52 Record physical addresses in the bitmap structure instead of VA's. The
latter breaks the mmap-functions.
1997-01-10 20:59:27 +00:00
perry
40533e83ff Commit latest fixes/upgrades to NCR SCSI driver. From FreeBSD via
Dave Huang <khym@bga.com>

Tested on alpha by cgd, tested on several i386 boxes. Certainly causes
no harm to the goddamned mess, but the NCR driver only works when you
perform voodoo rituals on it anyway.

This is what Dave said (in email) has been added to the driver:

  ----------------------------------------------------------------------
  This seems to be the most significant change:
  General cleanup and new features for 53c875 based cards, especially the
  Tekram DC390W/U/F, whose config EEPROM can now be dumped, if the kernel
  is built with option NCR_TEKRAM_EEPROM.

  Other changes:

  - add brackets to expansion of OUTB/W/L macro arguments.
  - remove unused NCB structure element ns_async
  - support sync. SCSI offset of 16 (instead of only 8) on 825A and 875
  - correctly identify 53c810A and 53c825A chips
  - preserve SCSI BIOS settings of PCI performance options
  - remove (already disabled) support for NCR reset because of command timeout
  - reverse order of reading of SCSI and DMA specific interrupt cause registers
  - add definition of Tekram config EEPROM contents (not currently used)
  ----------------------------------------------------------------------
1997-01-10 05:57:10 +00:00
perry
8b5d8866c9 fix kvm_mkdb problem -- as per pr 3092 1997-01-10 05:28:14 +00:00
scottr
cc061d0a98 Normally, iteon() returns an int. If NITE == 0, define iteon() to be 0.
Closes PR 3091.
1997-01-10 00:07:27 +00:00
thorpej
0ba0c241a3 Oops, forgot to commit this; declare db_onpanic. (Thanks, Scott.) 1997-01-09 16:57:14 +00:00
scottr
233a1d3f57 Use only FC $1 in TT0 in get_pte(), and map the entire address space. We
can then access the page table entries directly using user data space with
the MOVES instruction.  This should resolve the problem on the Duo 2x0
series with hard hangs in this function.

Warning:  do not call any function that accesses user data space (FC $1)
from get_pte()!
1997-01-09 07:28:12 +00:00
scottr
8bd4e6d18e Sync with current 040-related development:
- Figure out what CPU we have, rather than assuming the Booter knows,
   and set cputype variable accordingly.
 - Carefully rearrange the order of various MMU/ATC operations so as to
   eliminate possible side effects.  Also, re-order the initial bootstrap
   code to make clear what various sections of this code do.
 - Adjust to combined initenv()/genenvvars() (the latter has assimilated
   the former).
 - Add a function code argument to ptest040().
 - Use symbolic constants from assym.h where appropriate (and defined).
 - Some style cleanup.
1997-01-09 07:24:39 +00:00
scottr
cd2817bffb Sync with current 040-related development:
- Combine initenv() and getenvvars().
 - Hardwire some PowerBook internal video addresses, from Takashi Hamada.
 - When printing out the machine model/CPU, use the new cputype variable
   instead of the Booter's PROCESSOR environment variable.
 - Use new ptest040() function code argument (though for now, the MMU is
   disabled on the 040).
 - Revert previous change in get_physical() that seems to have broken
   some machines; use an ADD instead of an OR when determining the PA.
 - Some (very minor) style cleanup of asm code.
1997-01-09 07:20:46 +00:00
scottr
f832503ac5 Add CACHE40_ON, for locore 1997-01-09 07:14:17 +00:00
thorpej
1dc6efd7e6 Only call Debugger() on panic if "db_onpanic" is set. 1997-01-09 05:38:22 +00:00
thorpej
8404eae1ea Grok CTL_DDB. 1997-01-09 05:37:41 +00:00
thorpej
c14ce368af Define db_onpanic variable; if non-zero, the DDB will be entered when
the kernel panics.  It may be initialized to 0 with the kernel option
"DDB_ONPANIC=0", and is patchable.  It may be changed at run-time
from within the DDB (as a DDB variable) or via the ddb.onpanic sysctl
node.

Export all DDB built-in variables via sysctl.
1997-01-09 05:37:02 +00:00
thorpej
da30871192 Define top-level MIB node for DDB (CTL_DDB) and DDB MIB identifiers. 1997-01-09 05:33:42 +00:00
mycroft
5369bfe88a s/soft error/soft error (corrected)/, to avoid confusion. 1997-01-09 04:30:08 +00:00
scottr
b917ce3294 Bracket kernel structs with #ifdef _KERNEL so that bootblocks will once
again build.
1997-01-09 01:07:59 +00:00
veego
d61e3f8c25 ipl[attach|detach]->ipfilter[attach|detach] for the pseudo-device change 1997-01-08 21:45:39 +00:00
oki
a83d534e05 Add EXEC_AOUT and EXEC_SCRIPT. 1997-01-08 16:17:29 +00:00
oki
0f23801475 Fix typo. 1997-01-08 16:16:14 +00:00
leo
7e22e8338d Adjust 'fill'. 1997-01-08 12:57:22 +00:00
leo
5df535d814 Handle DTYPE_ESDI like ST506. 1997-01-08 12:55:41 +00:00
leo
d1538cb3c0 Don't try to init the keyboard interrupts in cngetc(). This caused the
keyboard to hang when booting directly into the debugger.
1997-01-08 11:28:03 +00:00
oki
7dcae7a79d Add macros. 1997-01-08 10:29:27 +00:00
leo
1d1bc2cb98 Bump version. 1997-01-08 10:18:39 +00:00
oki
e4b66b6973 Compile again. 1997-01-08 10:15:51 +00:00
oki
0c47c09505 Use FPU_XXXXX macro, x68k is now use this file. 1997-01-08 04:03:50 +00:00
oki
0e00922730 Add fpu_probe prototype. 1997-01-08 04:00:47 +00:00
oki
c68b49f85c Add fpu.c, delete unneeded fpe_emulate.c line. 1997-01-08 03:59:32 +00:00
mrg
c71a371532 use pseudo-device ipfilter, not ipl. 1997-01-07 11:35:01 +00:00
mrg
9cc6a2a495 remove some old debugging statements. 1997-01-07 10:51:01 +00:00
mrg
615fc0a880 add netinet... 1997-01-07 10:48:19 +00:00
mrg
f9eeb3865a oops; forgot these. 1997-01-07 10:47:35 +00:00
mrg
7de1b7c8eb only set P_SUGID once. 1997-01-07 10:41:02 +00:00
thorpej
c56e780e4f Bring some sanity into my frazzled existence:
- Always ensure that RAW_PART ("c") can be opened.
- Disallow unused or non-existent partitions from being opened.
- Don't do bounds checking or partition translation on RAW_PART.
This is consistent with other disk drivers in the NetBSD source tree,
and fixes a condition where the user could not fix a corrupted disklabel
due to a bogus offset for partition "c".
1997-01-07 09:29:30 +00:00
veego
863a668514 Add the pseudo-device for ipl and PFIL_HOOKS which is required for ipl. 1997-01-07 08:01:32 +00:00
veego
6141167d37 Add cdevsw entry (#44) for ipl (IP filter). 1997-01-07 07:57:31 +00:00
scottr
4211100164 Don't unlock the NuBus on PowerBooks; this bit controls the Power Manager
chip on these machines.  From Takashi Hamada.
1997-01-07 07:45:45 +00:00
scottr
a54b50a58c If 040 MMU is enabled, attempt to get memory mapping. (At present, this
can't happen because we've faked a disabled MMU.)
1997-01-07 07:44:01 +00:00
scottr
c0af85f6f3 Add CPU_XXX macros to assym.h 1997-01-07 07:42:17 +00:00
scottr
3753710f38 Fix typo in last: cf->cf_unit -> sc->dv.dv_unit 1997-01-07 07:40:46 +00:00
cgd
ebabdb626a dd bdevsw and cdevsw entries for floppy disk driver (not currently usable),
and cdevsw for ipl (IP filter).
1997-01-06 23:28:09 +00:00
is
d97cf56937 Add manufacturer/product id for Apollo-68060 accellerator board. 1997-01-06 18:05:15 +00:00
is
61e3fad685 Build / install some stuff from stand (e.g.: bootblock) 1997-01-06 12:33:09 +00:00
veego
918ad06a75 Add PFIL_HOOKS and NSIP. 1997-01-06 09:59:32 +00:00
thorpej
32dda9a886 Kludge newvers rule, so that it works with old and new config. 1997-01-06 08:49:30 +00:00
thorpej
c26a11ab21 Add PFIL_HOOKS and ipl pseudo-device. 1997-01-06 08:48:36 +00:00
thorpej
7e3b804ce5 Add ipl pseudo-device. 1997-01-06 08:47:43 +00:00
thorpej
3941a378c0 Give the "ipl" pseudo-device the "device-driver" attribute, so that
ipl.h is generated.
1997-01-06 08:41:19 +00:00
mrg
394d540361 add PFIL_HOOK and ipl, both commented. 1997-01-06 07:35:39 +00:00
mrg
fb5d192bc3 include the GENERIC kernel, and then map the disks. 1997-01-06 07:34:14 +00:00
mark
fd643704d1 Minor changes (inline -> __inline)) 1997-01-06 04:47:53 +00:00
mark
fe764c2415 Added the ipl pseudo device.
Cleaned up the options and sync with reality.
1997-01-06 03:39:13 +00:00
mark
5aad105fd0 Added character ipl device on major 46. 1997-01-06 02:44:10 +00:00
mark
bc3f67bb21 Use the irqblock array to provide the information about which interrupts
should be blocked for each irq currently asserted.
1997-01-06 02:35:46 +00:00
mark
c87f4e3785 Added the functions intr_claim() and intr_release(). These are front
ends for irq_claim() and irq_release() that will allocate and free
memory for the irqhandler structure.
Added an irqblock array that provides a quick reference to all the
interrupts that should be blocked when a particular interrupt is
received. The irq_claim() and irq_release() functions now update the
irqblock array.
1997-01-06 02:30:21 +00:00
mark
b34fcd542a Added prototypes for intr_clain() and intr_release().
Added const to the ih_name member of the irqhandler structure.
1997-01-06 02:19:06 +00:00
mark
9f1c9fe28e Symbol kernel_text -> _kernel_text 1997-01-06 02:15:17 +00:00
veego
98bf77c987 Add needs-flag and ifnet for ipl. 1997-01-05 22:16:51 +00:00
veego
cf21385a5e use NIPL. 1997-01-05 21:44:24 +00:00
veego
473d4f54d1 Add $NetBSD$ id's and restore the orginal Id's. 1997-01-05 21:32:18 +00:00
veego
25bcda3b52 Add $NetBSD$ id's and restore the orginal Id's. 1997-01-05 21:32:17 +00:00
mrg
ad6281b640 use NIPL. 1997-01-05 21:32:15 +00:00
veego
47517abd07 Add $NetBSD$ id's and restore the orginal Id's. 1997-01-05 21:32:14 +00:00
thorpej
246654663f Add "ipl" device at cdev major 18. 1997-01-05 21:29:49 +00:00
veego
ea9ed8902e add a ipl pseudo-device. 1997-01-05 20:44:42 +00:00
veego
048acbeb1e add ipl device. 1997-01-05 20:39:01 +00:00
mark
c65504baea Lowered the FIFO trigger threshold to 4 for rather than 8.
Impelemented a fix for kernel locks when opening the serial post :
Revisions A->D of the SMC FDC37GT665 Peripherial controller have
a bug in the serial port that is triggered if the FIFO is enabled
while there is a byte in the rx data register resulting in the
rx ready bit being permenantly set.
1997-01-05 19:19:57 +00:00
mark
17d2a69941 Updated for latest major allocations. 1997-01-05 19:01:18 +00:00
mark
cd9c6d9853 Change rd references to md that escaped the previous change.
Reformatted a few over-long source lines.
1997-01-05 18:57:04 +00:00
ragge
3896082c5a Add rd, sd, cd, md, st, ss, uk, ch and ipl device entries. 1997-01-05 18:49:12 +00:00
mrg
c1067a3f4b initial import of darren reed's ip-filter, version 3.1.2. 1997-01-05 13:47:59 +00:00
mrg
ca896854ef add ipl device. 1997-01-05 13:43:04 +00:00
mrg
07bfe47053 add cdev_ipl_init() and cdev_decl(ipl), for ip-filter. 1997-01-05 13:41:50 +00:00
mrg
b002cf09d3 initial import of darren reed's ip-filter, version 3.1.2. 1997-01-05 13:39:41 +00:00
mrg
85f84f08cd initial import of darren reed's ip-filter, version 3.1.2. 1997-01-05 13:26:10 +00:00
scottr
3afad659e2 Add basic support for a Duo dock SCSI controller, from Daishi Kato.
XXX - This could probably be improved if all docking hardware has a
NuBus declaration ROM that we can get to.  This should be investigated
further.
1997-01-05 10:01:42 +00:00
thorpej
f77141521c Oops, build dio.o in the old config case, too. Pointed out by
Dave Carrel <carrel@cisco.com>.
1997-01-05 04:41:48 +00:00
leo
1b2f4a364c grf? -> grfcc? 1997-01-04 23:32:08 +00:00
leo
0713c0ee88 Fix a rather nasty thinko that made the keyboard useless on the Falcon.
Thanks to Markus Kilbinger for finding it.
1997-01-04 23:30:21 +00:00
jonathan
f703350d59 typo in definition of extended-geometry register. 1997-01-04 16:47:03 +00:00
jtk
d721f54830 Be more careful with posting events for user standbys and user
suspends--let the user-level daemon handle it if present.
(pr#3005)
1997-01-04 03:04:25 +00:00
leo
a5eb9c92ec Use the [HD|WR]FAULT macro's from the hp300 version of trap.c and use
cputype where appropriate.
1997-01-04 00:10:30 +00:00
leo
9f5f6ada1b Remove ST-DMA handler, this interrupt now uses the glue code. Count the
clock interrupts in the new counter set.
1997-01-04 00:08:46 +00:00
leo
cafb680cf1 Oops, the declaration of cputype was gone... 1997-01-04 00:06:21 +00:00
mark
2bb8f07910 Added a probe for a podule is EASI space if it is not found in normal
podule space.
Fixed a bug in the reading of bytes from network slot cards that prevented
the correct reading of the network slot ROM description.
config code now allows duplicable devices to be attached.
1997-01-03 23:30:30 +00:00
mark
4065dc201f Increased the podule description length from 47 to 63 characters.
Commented some structure members.
1997-01-03 23:27:31 +00:00
mark
dc9795f6e8 Removed a lurking ; from a #define line. 1997-01-03 23:26:22 +00:00
mark
e1395f3c17 Updated credits. 1997-01-03 23:24:48 +00:00
mark
0b49070ad5 Rebuild from latest podules list. 1997-01-03 23:22:03 +00:00
mark
180ca73617 Added new manufacturer and podule ID's. 1997-01-03 23:21:28 +00:00
mark
04d5907be9 Clean up the code formatting. 1997-01-03 23:19:02 +00:00
mark
de84ec92b1 Fixed several lurking function calls (printf -> db_printf). 1997-01-03 23:17:40 +00:00
mark
d60f65e8bc Guard all functions that are only used by kshell with #ifdef KSHELL. 1997-01-03 23:15:44 +00:00
mark
763f5034bd ib_addr in the iicbus attach args should be an int not a u_int as -1
is an acceptable address.
1997-01-03 23:13:05 +00:00
mark
ff84194c2f Sync with reality. 1997-01-03 23:10:31 +00:00
leo
da93afbd05 Get rid of 'cpu040' variable. Use 'mmutype' or 'cputype' for testing
instead.
1997-01-03 22:54:22 +00:00
mrg
4f2a217c2b pull up vm_object_collapse() fix from mrg_vm_object_collapse branch.
many thanks to niklas hallqvist (niklas@appli.se) for this.
1997-01-03 18:03:14 +00:00
mrg
f3d9c468e1 minor KNF changes. 1997-01-03 18:00:25 +00:00
mikel
d235ef1a1c hide softc array and kernel routine prototypes from userland; PR misc/3070 1997-01-03 07:23:29 +00:00
christos
3ec6dad0f1 Typo police from: Juergen Hannken-Illjes 1997-01-02 22:06:51 +00:00
is
9ad0171cce Use the right parameter to decide whether it's early configuration. (I wonder
why this worked with some configurations... it shouldn't have).

While we're here, correct the 2.4% error in the delay divisor message.
1997-01-02 20:59:42 +00:00
pk
a0f6df960f RAMDISK_HOOKS => MEMORY_DISK_HOOKS 1997-01-01 23:46:29 +00:00
pk
fbfb9e1144 Device rename: rd' => md' 1997-01-01 23:32:41 +00:00
pk
fe71b17fca Device rename: rd' => md' 1997-01-01 23:21:54 +00:00
pk
84a0f13e4c RAMDISK_HOOKS => MEMORY_DISK_HOOKS 1997-01-01 23:12:23 +00:00
pk
072388d107 Device rename: rd' => md' 1997-01-01 23:04:58 +00:00