Commit Graph

30060 Commits

Author SHA1 Message Date
drochner
41b78a54f1 print diskless boot related IP addresses in dot notation 1999-05-07 15:10:03 +00:00
drochner
e6b49c7863 move intoa() from libsa:net.c to libkern, turn inet_ntoa() into a macro,
nuke ip_convertaddr()
1999-05-07 14:49:52 +00:00
drochner
192b3c733c Build libraries for kernel/standalone code from within their compilation
directories and use .PATH to lookup the source files.
(Formerly, the libs were built from the source dirs, with MAKEOBJDIR
set to the compilation directory.)
This solves 2 problems:
-"mkdep" and "make" are now consistent about the file lookup, this fixes
 bad interactions with amd reported in PR bin/7374 (Arne Juul) and
 lossage reported by Andrew Gillham ("obj" dirs and relative paths still
 don't work well together)
-kernel compile trees can be moved around without forcing a new
 "make depend" - fixing PR kern/4021 by Martin Husemann
1999-05-07 14:28:50 +00:00
nisimura
1d082ddc15 - Sweep abit preparing for code merge to have common 'vdacops' across
various graphics cards.
1999-05-07 08:00:30 +00:00
nisimura
4ce0e8e16f - Nuke '_splset' alternative entry point mistakenly added. 1999-05-07 06:18:56 +00:00
nisimura
9c2eefcae6 - Introduce MIPS processor interrupt control routines;
_splraise, _spllower, _splset, _splget, _setsoftintr, _clrsoftintr, _splnone.

They manipulate MIPS processor's 8 interrupt sources and are used
as building blocks for NetBSD spl(9) kernel interface.  Note that
MIPS processor doesn't enforce inclusive 'interrupt levels' found
in other processors, then the hierarchal nature of IPL must be
implemented by composing MIPS processor interrupt masks appropriately.

With the simplest target port in which small number of devices are
independently assigned with 6 external interrupt signal lines,
spl(9) kernel interface will be implemented with #define's of
processor interrupt controls mentioned above.  In more general
cases, in which target computers have many devices and 'system
registers' indicating pending interrupt sources at any moment,
spl(9) will be implemented with more complex machinary manipulating
processor interrupts and system registers in target port dependent
ways.

- Nuke unused code and reorder locore definitions.  XXX Following
routines will be replaced with C language version; setrunqueue,
remrunqueue, switchfpregs, savefpregs, MachFPInterrupt.
1999-05-07 01:30:26 +00:00
matt
307a48b721 Regen 1999-05-07 00:57:46 +00:00
matt
e735c2bf67 Add TI LYNX FireWire Controller (as used in the Apple B&W G3) 1999-05-07 00:56:46 +00:00
thorpej
20d1861d97 Revert previous. Um, Christos, why did you delete the body of this
file?  :-)
1999-05-07 00:28:22 +00:00
leo
2d3a4c7fd6 Add .../dev/mii/files.mii. Needed for support of the 3C590. 1999-05-06 20:27:57 +00:00
leo
bad559ed77 Remove dependency of vfs_conf.o, this file is no more. From Jonathan Stone. 1999-05-06 20:25:17 +00:00
wrstuden
fb7f9b828f Add pciide config info. 1999-05-06 19:28:20 +00:00
thorpej
680c3ddbd2 Completely rewrite how cninit() determines which keyboard to use with
the console.  New algorithm:

* if stdin == keyboard, and parent of keyboard == adb, use ADB.
* else, must be a USB keyboard.  Search backwards though the parents
until the USB controller is located.  Determine its location in the PCI
domain, and which type of controller it is, and tell that controller that
it has the console input device.  The USB code will then attach the first
USB keyboard as the console input device during autoconfiguration.

The iMac and Blue and White G3 consoles are fully functional now!
1999-05-06 19:24:47 +00:00
thorpej
ac9eee8693 Take all of the OpenFirmware "stdin" grovelling out of the ADB keyboard
driver, as the smarts for this all live somewhere else now.
1999-05-06 19:20:59 +00:00
thorpej
35df607966 Allow pci_init() to be called twice, once just to find the PCI-Host
bridges and determine the "pci chipset" values (for making PCI tags),
and again to actually map the configuration space registers.
1999-05-06 19:16:44 +00:00
thorpej
375d7c32f2 Add a way for machine-dependent code to tell a USB controller that it
has the console input device.  The USB keyboard driver uses this to
attach the first USB keyboard instance as the console keyboard.

Unfortunately, this must still be deferred to autoconfiguration time,
but there's not much we can do about that right now.
1999-05-06 19:12:22 +00:00
christos
3cc711cbe0 Well we are functional enough to install from an NTFS volume, so why knot? 1999-05-06 17:12:26 +00:00
christos
e649afd171 Add NTFS for the compat names. 1999-05-06 17:11:04 +00:00
christos
d8463798c9 Add NTFS 1999-05-06 16:29:26 +00:00
christos
0c7931917a recognize ntfs mbr fsid 1999-05-06 15:45:51 +00:00
christos
d9a25d1815 Fix compilation problems. 1999-05-06 15:43:17 +00:00
christos
b45af1f072 Import yesterday's NTFS FreeBSD source 1999-05-06 15:36:39 +00:00
christos
d050379811 Add NTFS gunk. 1999-05-06 15:31:42 +00:00
christos
6427cca029 Add NTFS related constants. 1999-05-06 15:29:23 +00:00
christos
bd6c16f830 Correct NTFS entry from 87 to 7, and make 87 be NTFS volume set (from fdisk.c) 1999-05-06 15:28:27 +00:00
mrg
8c630939a3 regen 1999-05-06 14:29:21 +00:00
kleink
6290fed1b6 SVR4-related typo in previous. 1999-05-06 14:16:07 +00:00
kleink
fc1b5041ac Add a _C_LABEL() macro. 1999-05-06 13:54:06 +00:00
drochner
4479f71283 sync diagnostic printouts in opms_pckbc_probe() with dev/pckbc/psm.c:
pmsprobe() -- most notably: put a part inside #ifdef DEBUG
1999-05-06 09:10:51 +00:00
mrg
10c5298d7e add pci devices found in U5's:
- ati weird mach64
	- ebus bus
	- `network' hme compatible ethernet
	- `simba' PCI bus
1999-05-06 06:17:39 +00:00
scottr
0179750b00 Correct two more problems of the same type as in rev 1.21: use the length
of the buffer you're copying from as the loop interator, not the length
of the buffer you're copying to.  Also, rewrite print_single() with
pointer instead of array operators.  Appears to correct some ADB-related
`hangs' during autoconfig.
1999-05-06 06:01:27 +00:00
tsubai
661ae33963 Remove unused codes. 1999-05-06 04:37:44 +00:00
thorpej
1f4085fb66 Fix spruious false matches in px_match(). 1999-05-06 01:50:56 +00:00
thorpej
964b69ec84 Back out previous. Thanks to cgd for pointing out another way to do this. 1999-05-06 01:10:28 +00:00
wrstuden
af849de633 MAke this cross-tools happy. 1999-05-06 01:04:48 +00:00
thorpej
2a4490daa5 Add a `bus' member to the pci_attach_args. This is not normally used,
but some child drivers might need to know this information.
1999-05-06 01:01:19 +00:00
thorpej
bb619306e2 Add needs-flag to the ukbd device. 1999-05-06 00:42:16 +00:00
thorpej
39544d33b7 Add needs-flag to the uhci and ohci controller attributes. 1999-05-05 23:57:31 +00:00
mycroft
e6548e54bd Enable interrupts *after* reading the fault address and status. This is
necessary because some interrupt handlers may cause additional faults (e.g.
through R/M emulation) and thereby trash the previous fault state.
From Richard Earnshaw.
1999-05-05 22:06:15 +00:00
perry
f8e8703b5e Add patch from Manuel Bouyer -- his mail message said:
By code inspection I found 2 bugs in the ATAPI code, one may be the cause
of your problem: A counter is not reset when issuing the request_sense
command. This is c_skip, the counter used to track the offset in the data
buffer when a data tranfer needs multiple phases. The effect of this is that
the sense data transfered may be stored outside the sense buffer (sense buffer
+ some, potentially several KB, offset). This can only occur in PIO mode,
DMA is not affected.
This doesn't occur in "normal" use because when reading a data CD, either
the sense is issued for a non-data command (in which case c_skip stays to
0), or an error occured and no data has been transfered, and c_skip is still 0.
I can't see a case where a data READ/WRITE could cause a sense tranfer without
error.

The second problem is that b_resid can be set to a false value (resulting of
the sense tranfer and not the data transfer). Again this is not a problem with
usual data tranfers because both values ends up being 0 when no error occurs.
1999-05-05 21:35:15 +00:00
thorpej
74b3466a83 NetBSD 1.4B. 1999-05-05 20:03:59 +00:00
thorpej
e3669c3393 Add "use counting" to file entries. When closing a file, and it's reference
count is 0, wait for use count to drain before finishing the close.

This is necessary in order for multiple processes to safely share file
descriptor tables.
1999-05-05 20:01:01 +00:00
thorpej
65776a5a0c Make dupfdopen() take a proc * instead of a filedesc *. 1999-05-05 19:52:20 +00:00
thorpej
4913e22a19 Fix alignment problem in the garbage-collection code path. 1999-05-05 19:05:43 +00:00
pk
4cb2198a44 Declare `bootinfo' also if !DDB. 1999-05-05 15:32:33 +00:00
bouyer
9893727873 Fix the way we compute the mode to use: for multiword DMA, the used mode was
2 less than the one we could really use, so for multiword DMA mode 0 or 1,
the driver tried to use DMA mode 255 or 254 (0 - 2 with a u_int8_t).
1999-05-05 15:24:59 +00:00
minoura
db3bdbe86c Shut up gcc -Wall. 1999-05-05 14:31:16 +00:00
minoura
ad762a0b97 Use mvme68k-derived delay routine.
Now that we support various models, the old constant-loop delay routine
may cause problems.
1999-05-05 13:46:20 +00:00
minoura
3fe3e5261b Add missing ia_size argument. 1999-05-05 13:41:44 +00:00
minoura
7cebd447fb Move config_console to ensure that it is always called. 1999-05-05 13:41:19 +00:00