Commit Graph

6034 Commits

Author SHA1 Message Date
thorpej deb00c27b3 Use a "match/attach" rather than "init" scheme for probing devices.
This is a step towards getting the drivers ready for new config.

Clean up namespace, remove several instances of global arrays.  Instead,
use a softc to carry state around.  Where possible, pass a pointer to
the softc rather than a unit number.

Pointers to hardware and software constructs are now stored per port
in each instance of the softc (one softc per board) rather than indexed
by minor number.
1995-12-02 18:18:50 +00:00
thorpej 41cf6f071f Use a "match/attach" rather than "init" scheme for probing devices.
This is a step towards getting the drivers ready for new config.

Clean up namespace, remove several instances of global arrays.  Instead,
use a softc to carry state around.  Where possible, pass a pointer to the
softc rather than a unit number.
1995-12-02 18:15:50 +00:00
thorpej 3ac76475ea Use a "match/attach" rather than "init" scheme for probing devices.
This is a step towards getting drivers prepared for new config.
1995-12-02 18:11:21 +00:00
thorpej de5ce5f48c Change "hilloop" to "hilsoftc" and make slightly more new config-friendly.
Remove all uses of curproc.
1995-12-02 02:48:47 +00:00
thorpej b618522128 Make the DMA controller driver a little more new config-friendly. Still
more work to do, but this is a step in the right direction.
1995-12-02 02:46:45 +00:00
leo 5f2ab2109f Use files.fpe 1995-12-01 19:53:07 +00:00
leo ca1cc64e20 Remove forgotten #endif 1995-12-01 19:51:53 +00:00
ragge 45d824de05 DELUA/DENUA & DELQA/DEQNA Ethernet adapters converted to new config. 1995-12-01 19:37:55 +00:00
ragge 2e654caa73 UBA converted to new config. (uba's now can be *'ed). Bug causing
DMA writes to nonexistent memory pages fixed. Code for old config
of non-mass-storage devices removed. (they now must use new config).
1995-12-01 19:22:56 +00:00
briggs 1b03745209 cmdlen-2 is right for the last byte of the command. Ifdef out for right now,
though, as some devices apparently don't support linked commands and will
reject commands that have the link bit set in them.
1995-12-01 15:14:11 +00:00
pk 8a1606d530 Don't return `XS_DRIVER_STUFFUP' too easily; this can hose buffer cache
writes. Say XS_TIMEOUT in stead so the scsi code will retry.
1995-12-01 01:00:55 +00:00
leo e267646321 KNF-ify 1995-11-30 21:55:01 +00:00
leo 291d8cbf3a Add kernel option for separate {stat,prof}clock 1995-11-30 21:52:46 +00:00
briggs d416ec2cc9 Put the link flag in the right place.
Pointed out by Paul@pgoyette.bdt.com (Paul Goyette).
1995-11-30 14:25:40 +00:00
jtc 0cd793449e merge in changes from 1.1 release branch 1995-11-30 00:56:23 +00:00
pk a2a4da4874 Merge changes from sun3 port; per Gordon. 1995-11-29 23:43:42 +00:00
pk ee08e9085b Extend the size of the "soft" FIFOs which reportedly reduces the number
of FIFO overflows on high baud rates.
However, doing so on all 4 ports would cost a whopping 64KB (at 4096 entries
per FIFO) of kernel memory. So, the FIFOs are now allocated at attach time
allowing the size for the keyboard and mouse ports to be reduced (to 128)
which should be adequate for the 1200 baud they use.
1995-11-29 23:41:31 +00:00
pk 12bfe2e68e Must change `u_long' to `u_int32_t' as Jason pointed out. 1995-11-29 22:03:53 +00:00
pk 6e53c6a5fd In probe[gs]et() there's no need to check against KERNBASE, as pointed
out by David Jones and Chris Torek.
1995-11-29 01:52:41 +00:00
pk e9a919b88f Code from Jason to better configure /dev/fb. 1995-11-29 01:45:36 +00:00
pk ce474272f1 Prevent synch negotiation on ESP100 chips 1995-11-28 22:49:31 +00:00
pk 9bf3251e46 Lots of major and minor bug fixes and changes.
- properly do MSG_IN handshaking, so we can actually receive multi-byte msgs.
- do synch negotiation (now that the above works).
- handle disconnects.
There are a few trial-and-error bits at points where the docs I have are
particularly ambiguous about the state of chip and/or SCSI bus.

Things to do:
- more cleanup
- deal with MSG_OUT phase better
- keep some "config reg 3" bits per target (ie. FASTCLK and FASTSCSI).
1995-11-28 20:49:12 +00:00
pk def161af38 Careful with signed chars (caddr_t *!).
Merge in 1.1 changes.
1995-11-28 20:26:59 +00:00
thorpej da66c0a255 Enable COMPAT_HPUX. 1995-11-28 08:48:18 +00:00
thorpej 38b63746fb Note the new status of COMPAT_HPUX, but keep is disabled by default. 1995-11-28 08:47:38 +00:00
thorpej 63b0022b86 Update a #include for the "new" location of HP-UX emulation code. 1995-11-28 08:12:37 +00:00
thorpej ffcccc41bd Compile compat/hpux/hpux_exec.c and compat/hpux/hpux_file.c if COMPAT_HPUX
is defined.
1995-11-28 08:10:09 +00:00
cgd 29d9eeabd1 kill these. they're no longer used. 1995-11-27 23:28:00 +00:00
mycroft e2baea19f3 Make sure vt_coldinit() is called before vt_coldmalloc(). 1995-11-26 21:01:16 +00:00
mellon 55980119ec Remove some cruft 1995-11-25 10:39:57 +00:00
mellon 8b29652e06 Fix colormap initialization for monochrome pmax framebuffer 1995-11-25 10:38:42 +00:00
mellon db99c1a30b Provide compiler tool definitions for cross compilation. 1995-11-25 05:55:38 +00:00
cgd afc45b4ab7 pull in ECOFF exec code with EXEC_ECOFF 1995-11-25 01:34:38 +00:00
cgd 93a78af882 no DDB 1995-11-25 01:32:34 +00:00
cgd e6dc5f55db update for am7990var.h, am7990.c changes 1995-11-25 01:31:09 +00:00
cgd 0f7f390b49 allow bus-specific lance drivers to use machine-independent buffer/descriptor
copy functions, and convert isa and pmax drivers to do so.
1995-11-25 01:23:51 +00:00
cgd deb4082f80 wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
	Support for AlphaStation 600 CPUs,
	new boot block structure, which requires an 'installboot'
	    program and works a lot like the NetBSD/sparc boot blocks.
1995-11-23 02:33:17 +00:00
briggs 93d836857c RAMDISK stuff. 1995-11-21 05:06:28 +00:00
briggs 447b897889 Define DST and TIMEZONE 1995-11-21 05:05:51 +00:00
briggs e5a588356f Small RAMDISK kernel. 1995-11-21 05:02:02 +00:00
briggs 369e3de013 Get rid of obsolete time specs. 1995-11-21 05:00:34 +00:00
briggs f9ba6adcd7 Add rd_root.c from sun3. 1995-11-21 04:53:20 +00:00
briggs 0d91c3ff0b Back the sccClkConst off to 115200 for several classes of machines. 1995-11-21 04:00:43 +00:00
briggs 9afe66efa5 Add rd support at the same address as the Sun3. 1995-11-21 03:39:45 +00:00
thorpej b92924680d Garbage collect some stuff that isn't used. Rename the relocation info
structure to be consistent with the other m68k ports.  XXX that struct needs
to move to an m68k common file.
1995-11-20 01:15:26 +00:00
thorpej df59198ddc Put doshutdownhooks() in the right place. Pointed out by cgd. 1995-11-20 00:58:54 +00:00
thorpej 8272af3168 Re-arrange boot() a bit; call doshutdownhooks(), if we're rebooting, say so,
etc.  Modeled after the alpha port's boot().
1995-11-19 23:24:15 +00:00
thorpej 8122bc0e33 Prevent the ITE_ACTIVE bit from being cleared in iteoff() if the ITE_ISCONS
bit is set.  Works around the fact that the last process to have the
console open exits, the bit is cleared, and "syncing disks...", etc. is
not seen if the system is rebooted with reboot(8).  Fixes PR #1455.
1995-11-19 23:14:22 +00:00
thorpej 31430a5279 Cosmetically change one #include directive. 1995-11-19 22:32:38 +00:00
thorpej 905cb9dda1 Re-arrange things such that we can print out disk geometry regardless of
COMPAT_NOLABEL.

XXX One day when the world doesn't assume DEV_BSIZE bytes/sector, we'll be
able to actually use the stuff sensed from the drive, rather than a table.
1995-11-19 19:07:18 +00:00