Commit Graph

3079 Commits

Author SHA1 Message Date
thorpej
540caf5a8f Add "ec" driver. 1997-11-02 01:02:23 +00:00
lukem
3e8e744696 getopt returns -1 not EOF 1997-11-01 06:49:14 +00:00
drochner
bdf1b13477 -Don't try to parse the bootfile path in DOS mode.
-Take "dev" command from "biosboot" for consistency.
1997-10-31 18:50:09 +00:00
mycroft
9870971b35 Format police. 1997-10-31 07:59:52 +00:00
thorpej
173f7c3b37 Defopt PCIC_ISA_ALLOC_IOBASE, PCIC_ISA_ALLOC_IOSIZE, and
PCIC_ISA_INTR_ALLOC_MASK.
1997-10-29 22:50:46 +00:00
wrstuden
de95bf8c30 Add pnp support for the OPTi Audio 16's joystick port. 1997-10-29 19:40:12 +00:00
thorpej
1d338698d7 Flush tty input queue when going in and out of X mode, PR #4321,
Chris Demetriou.
1997-10-29 01:39:40 +00:00
fvdl
d2016e2df0 Disable interrupts when frobbing the keyboard controller for A20, as
it may generate a reset on some (older) controllers. Introduce a delay
to make some kbd controllers happier.
1997-10-29 00:32:49 +00:00
drochner
ec78310453 Catch "timeout" return of serial port read BIOS call. 1997-10-27 19:53:20 +00:00
drochner
64550a14f3 Pass status byte to caller too. 1997-10-27 19:51:18 +00:00
mikel
135737c189 fix some typos and other misfeatures in comments; no functional change
note that bha driver supports BT44x cards as well
1997-10-23 05:49:42 +00:00
sommerfe
c83f212654 Fix PR4316: pcvt busted in 1.3.. 1997-10-22 18:24:30 +00:00
thorpej
665f7d1a6e Implement __RENAME() in <machine/cdefs.h> 1997-10-22 05:20:32 +00:00
bouyer
d29eab51f1 Correct spelling of 'ThunderLAN' 1997-10-21 06:01:16 +00:00
thorpej
5ea9d818ae Update for new location of i82365.c 1997-10-20 20:26:25 +00:00
thorpej
1d1fd17f73 Don't panic if we fail to remap i/o or mem space in the attach function.
Instead, print a diagnostic and return.  (Some drivers do this already.)

Also, normalize the diagnostic message, and fix some places where the
printfs were getting ugly.
1997-10-20 20:07:57 +00:00
perry
75473a6379 we don't need FDESC 1997-10-20 20:03:04 +00:00
explorer
32b7029647 Mark options RND_COM as broken on i386 port 1997-10-20 18:45:09 +00:00
explorer
9d0579d2fb Comment out pseudo-device rnd, mention options RND_COM, and mark experiemntal 1997-10-20 15:19:51 +00:00
ws
0bb56df5a7 Fix spelling of my name 1997-10-20 09:54:50 +00:00
fvdl
d41883c9ac Fix typo in VM_MAX_ADDRESS. 1997-10-20 09:02:21 +00:00
perry
83a4427110 Sync with GENERIC; comment out a few more unneeded things. 1997-10-20 03:42:43 +00:00
fvdl
74f97b28cc Change various constants that depend on the kernel VM base address. Lower
it to 0xf0000000 to give it more breathing space.
1997-10-20 00:45:03 +00:00
fvdl
30c7fa3e36 Move kernel entry address down to f0100000 1997-10-20 00:43:21 +00:00
jtk
0ad10a1970 change name in comment from apmregs to bioscallregs 1997-10-19 22:59:50 +00:00
mycroft
87b7a8ba91 Minor changes to make these more similar again. 1997-10-19 20:31:29 +00:00
perry
838ebc1be2 Yet Another Massive Reorganization. I took the last reorg even
further. Devices are grouped by types and within the types segregated
by bus. Lots of comments fixed up, lots of nits cleaned. Extensive
comments from Jason and Charles incorporated.

We also really need an automatic way to generate INSTALL from GENERIC,
but that's a project for another day...
1997-10-19 20:14:21 +00:00
thorpej
3135cf9ecc Use bus.h 1997-10-19 19:17:07 +00:00
thorpej
29500b20c0 Make sure the i/o and/or mem addresses aren't wildcarded (i.e. -1) before
using the address in a bus_space_map() call.
1997-10-19 18:56:39 +00:00
perry
b07dc2077e typo: that -> than 1997-10-19 00:00:18 +00:00
hubertf
59b0f424db Prevent error if machine-symlink isn't already there (rm -> rm -f) 1997-10-18 21:46:27 +00:00
mikel
4c46c2bcc3 cosmetic cleanup (newlines, comments) 1997-10-18 04:51:03 +00:00
thorpej
1adb3a7a9d Sync with GENERIC. 1997-10-18 02:01:36 +00:00
thorpej
2f26438522 Major cleanup of the GENERIC config file. The devices are laid out in
a more readable manner now, and sorted by bus type.
1997-10-18 01:42:22 +00:00
bouyer
10e68aaed1 Add tl and mii devices. 1997-10-17 19:25:36 +00:00
bouyer
d3cfd58b6c Add mii. 1997-10-17 18:45:53 +00:00
bouyer
9cba1f94e1 Add detection of cyrix/ibm 6x86 cpu: these CPU pass the 486 test, but
fail the cyrix486 one. Add a test which succeed for all cyrix CPUs (from
FreeBSD).
1997-10-17 18:05:44 +00:00
thorpej
c8c33b5e87 Make pcvt compile with the new dev_t definition. 1997-10-17 15:24:17 +00:00
thorpej
4c970b2547 Add "ne" and "com" isapnp attachments. Move the fe0 declaration to a
more logical location.
1997-10-17 07:27:02 +00:00
enami
80d6b2fb22 Use lowercase for hexdigit. 1997-10-17 07:08:55 +00:00
enami
113f376554 Use TAB to separate cd*' and at'. 1997-10-17 07:07:26 +00:00
thorpej
500a0eac87 Pull marc-pcmcia branch down from trunk. 1997-10-16 23:32:35 +00:00
mycroft
4b807f403c dev/isa/comreg.h -> dev/ic/comreg.h 1997-10-16 08:03:05 +00:00
mycroft
372a74ea3a We don't need sysctl.h here. 1997-10-16 04:57:15 +00:00
mycroft
4a316f1d10 Use vm.h. 1997-10-16 04:48:34 +00:00
mycroft
2e52ce5fd7 Pull in vmparam.h as necessary. 1997-10-16 04:23:36 +00:00
mycroft
37e189d6a8 Need vmmeter.h here now. 1997-10-16 03:22:54 +00:00
mycroft
fc0fb1cfdc Pull in vm.h, not a bunch of individual files. 1997-10-16 03:05:19 +00:00
mycroft
5542cb9709 Include sysctl.h *once*, after vm.h. 1997-10-16 02:58:31 +00:00
mycroft
3e3c21dc5d Update a comment dating from 4.3/VAX. 1997-10-16 02:31:32 +00:00
thorpej
e89814fa69 Adjust for new "com" driver home. 1997-10-16 01:10:52 +00:00
jtk
d6c9c08d70 put in place a proper bioscall.h (sorry about that!)
finish up incomplete job of moving structure used by bioscall() to
<machine/bioscall.h>, with associated changes in include file strategy,
genassym stuff, etc.
1997-10-15 01:20:33 +00:00
thorpej
005a9c192c Add ISA and PCI "ne" instances as appropriate. 1997-10-14 23:30:55 +00:00
christos
37f905c2b8 Someone [who will remain nameless] forgot this... 1997-10-14 22:00:05 +00:00
thorpej
799112abbe Pull down from marc-pcmcia branch:
Implement new ISA interface functions:
* isa_intr_alloc() - allocate an ISA IRQ
* isa_mem_alloc() - allocate ISA memory space
* isa_mem_free() - free ISA memory space
1997-10-14 20:34:38 +00:00
jtk
d405a9e1d6 split APM stuff into APM and BIOSCALL specific conditionals
move some functions to separate files
1997-10-14 03:57:09 +00:00
jtk
f4f693c3a5 move arch/i386/apm_init stuff to arch/i386/bioscall via repository copy/tag strip 1997-10-14 03:56:24 +00:00
jtk
35a23b7856 add bioscall attribute and bioscall.s/apmcall.s files 1997-10-14 03:55:51 +00:00
jtk
36d9fea6ef use NBIOSCALL and NAPM where appropriate (split from former monolithic "NAPM") 1997-10-14 03:55:06 +00:00
jtk
a3cd5fc7ba split out apmcall and bioscall into separate files, for ease of modular
construction into other drivers (eventually)
1997-10-14 03:54:18 +00:00
lukem
28558b28eb rcsid fascism 1997-10-13 14:22:22 +00:00
drochner
e14496efb8 Ignore BIOS partition table and disklabel for floppys and RAW_PART,
for consistency with the kernel.
1997-10-13 09:26:29 +00:00
explorer
80513cb5ae o Make usage of /dev/random dependant on
pseudo-device   rnd                     # /dev/random and in-kernel generator
  in config files.

o Add declaration to all architectures.

o Clean up copyright message in rnd.c, rnd.h, and rndpool.c to include
  that this code is derived in part from Ted Tyso's linux code.
1997-10-13 00:46:08 +00:00
christos
b848861bfd Add ENDIANNESS constant 1997-10-11 19:11:10 +00:00
mycroft
9803f46796 Minor rearrangement to match other files. 1997-10-11 09:12:18 +00:00
mycroft
5c8d588138 Nuke NOOBJ. 1997-10-11 08:44:42 +00:00
mycroft
acf0e569a5 Update all the tags goo, and use bsd.subdir.mk. 1997-10-11 08:42:02 +00:00
explorer
735c351f71 Add hooks to insert timing info into the random system 1997-10-10 01:49:12 +00:00
explorer
bde51b6f93 add /dev/random as major device 46 1997-10-09 23:59:15 +00:00
bouyer
6ab3092b11 Add byte-swapping functions (bswap16, bswap32, bswap64) to libkern.
Only assembly version for i386 bswap16 and bswap32 for now (bswap64 uses
bswap32). Contribution of assembly versions of these are welcome.
Add byte-swapping of ext2fs metadata for big-endian systems.
Tested on i386 and sparc.
1997-10-09 15:42:19 +00:00
jtc
1bcecdd613 Fix tipo inherited from old version of TNF copyright template. 1997-10-09 08:48:33 +00:00
enami
6705728ce7 Make sure that vs.color is always initialized. Fix PR#2510.
- separate initialization code in sput() into new function pcinit().
- call pcinit() in both sput() and pcattach() if (crtat == 0).
1997-10-09 02:05:01 +00:00
mycroft
4d36fbdfa1 Clump USER_LDT with other CPU-related options. 1997-10-08 10:09:36 +00:00
mycroft
a9f50348ae Update comments regarding BIOSEXTMEM (now REALEXTMEM), and add REALBASEMEM. 1997-10-08 09:32:36 +00:00
mycroft
63c9e725bb Deprecate BIOSBASEMEM and BIOSEXTMEM, with an #error telling people to try the
latest version of the boot block first.  Add REALBASEMEM and REALEXTMEM, in case
they really are needed.
1997-10-08 09:23:04 +00:00
augustss
4a72d59d77 Add GUS PnP card to GENERIC. 1997-10-07 10:39:56 +00:00
drochner
4741e294cf Supress error message if ENXIO is returned by "open" of disk partition
while "findroot()". This happens if a disk without BSD partition is
present, or if the partition does not exist in the disklabel - normal
operation, not worth reporting. (Split out a part to keep indentation
level limited.)
Allow to set "nfs_boot_rfc951" by a conditional to make bootp easier
to use.
1997-10-07 09:54:16 +00:00
thorpej
0c368b5f67 Initialize the kernel message buffer earlier (before main() is called). 1997-10-06 20:38:46 +00:00
thorpej
66a1783103 Fix some license confusion. 1997-10-04 22:32:26 +00:00
thorpej
608283bedd Copyright assigned to The NetBSD Foundation. 1997-10-04 17:22:49 +00:00
lukem
7d508b124f define SIZE?=size, and use ${SIZE} instead of size. makes cross
compilation easier
1997-10-03 07:17:00 +00:00
drochner
f596be4ec4 Fix the problem described in PR port-i386/4177: scroll lock could cause
tsleep() to be called from an interrupt handler.
The semantics of the scroll-lock key is changed now: it issues a ^S or
^Q, depending on the current state. (It should probably issue
tp->t_cc[VSTOP] or tp->t_cc[VSTART] instead, but this would require more
serious structural changes because there is not always a tty context
present.)
The "scroll lock" LED is now controlled by pcstart()/pcstop(), so it
will show the real state even if the start/stop characters are remapped
or the normal ^S/^Q are used.
1997-10-01 20:48:59 +00:00
drochner
e125082627 adapt to changed device names 1997-10-01 18:13:19 +00:00
fvdl
d786742d91 Provide workaround (by Charles Hannum) for error in register allocation that
could occur in bus_space_write_multi*
1997-10-01 08:25:15 +00:00
mycroft
640405d50f Only use a subregion if the region we got was of length 8. 1997-09-30 22:10:59 +00:00
christos
90ac749fae PR/4162: Chris Jones: make cleandir does not work properly; it does not
remove the object files and the .depend file in the kernel build directory.
1997-09-30 22:10:32 +00:00
christos
52f4c73570 PR/4189: Matthias Scheler: pccons doesn't compile if national keyboard map
is used
1997-09-30 16:23:21 +00:00
perry
ce92768d58 add ext2fs support to boot floppy. 1997-09-29 15:42:14 +00:00
drochner
6969cb676f Pass new boot information per default. 1997-09-28 13:31:45 +00:00
drochner
22869434f2 Bring the new root disk algorithm into shape (minor cleanup, clarify
error message) and enable it.
1997-09-28 13:17:41 +00:00
drochner
4de13c78d3 Use the "proginstall" rule from <bsd.prog.mk> to get the UPDATE
behaviour right.
1997-09-28 11:47:29 +00:00
drochner
e8e12f56dc Don't use "termios" constants if no "com" devices are configured.
Closes PR port-i386/4166 (Chris Jones).
1997-09-27 10:55:48 +00:00
thorpej
0bd1685aa0 In device_register(), don't check PCI is PCI support isn't configured
into the kernel.

Also, some formatting changes to make new root finding code more KNF'ish.
1997-09-23 22:34:00 +00:00
drochner
1f1e574146 -implement a "device_register()" function to identify network interfaces
by bus type / address (for diskless boot)
-add some (experimental, commented out) code which could be used for
 identification of boot disks - should help for BIOS remappings
1997-09-20 14:15:54 +00:00
drochner
610abce93b Copy data passed by the boot loader into an array "bootinfo".
The former "cyloffset" argument is used as an (indirect) pointer to the
information structures. "cyloffset" has always been set to zero in the
past, so this should be save to do.
1997-09-20 14:01:26 +00:00
drochner
968f26b9d3 -define a buffer for information passed by the bootloader
-add a function ("lookup_bootinfo") to extract data
-use passed console information, if present, for console attachment
-arrange definitions for console and KGDB device a bit nicer
1997-09-20 12:51:13 +00:00
drochner
b8a47d06da Define "machdep.booted_kernel" for sysctl. 1997-09-20 12:40:25 +00:00
drochner
c03122fcb1 In some future (ie, without COMPAT_OLDBOOT), we don't want to bother
with the disk type (IDE or SCSI) here - the BIOS doesn't do it either.
Set "#ifdef"s accordingly.
1997-09-20 12:36:05 +00:00
drochner
dc0b04e0ad Note use of common menu functions and new framework for argument passing
to the kernel.
1997-09-20 12:28:21 +00:00
drochner
041680f614 don't forget to save the partition number for the kernel 1997-09-20 12:17:41 +00:00