Commit Graph

1256 Commits

Author SHA1 Message Date
jdolecek 8fedbd8497 Add i386-specific part of MicroChannel Architecture bus support, as
found in some older IBM PS/2 machines.

This code is based upon work by Scott D. Telford, with some minor bits
in arch/i386/mca/mca_machdep.c taken from FreeBSD.

XXX this is still very experimental and development version; use at your
XXX own risk
2000-05-11 16:38:10 +00:00
mycroft 468985f608 Adjust asm statement for newer GCCs. 2000-05-03 21:32:59 +00:00
tron 5bfc315184 Fix typo in comment. 2000-04-17 07:57:21 +00:00
thorpej 6dd5a9db6e Use dev/isa/fd.c. 2000-04-07 16:35:19 +00:00
thorpej d8be1024c1 Make this compile again after the callout changes. 2000-04-02 19:54:29 +00:00
thorpej b667a5a357 New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.
2000-03-23 06:30:07 +00:00
fvdl bb8265c6be Update ISA/VL frontend for new ahc driver (done by Noriyuki Soda). 2000-03-15 02:05:19 +00:00
soren 95054da1a1 Fix doubled 'the's in comments. 2000-03-13 23:52:25 +00:00
thorpej a183d34f04 - Implement cnbell() -- ring the console bell. The cn_bell entrypoint
is optional.
- Add cn_bell to statically allocated consdevs as appropriate.
2000-03-06 21:36:05 +00:00
erh 8f03b9a04a Define the DONETISR macro and use netisr_dispatch.h. This is to cut down on code duplication and to standardize the available NETISRs across all ports. 2000-02-21 20:38:46 +00:00
thorpej 52a2804a5c Add a new function call to the ISA DMA API: isa_dmamaxsize(), which returns
the maximum transfer size for the specified DMA channel.  Make all clients
of ISA DMA use this call to determine their maximum transfer size.
2000-02-07 22:07:27 +00:00
thorpej fe551f0e64 Fix a bug in disksort_*() which caused non-optimal ordering when multiple
active partitions were on a single spindle.  Add a b_rawblkno member to
struct buf which contains the non-partition-relative block number to sort
by.
2000-02-07 20:16:47 +00:00
minoura 93d494f9a5 Take care of National Geode (Cyrix MediaGX) built-in clock module bug.
Patch supplied by INOUE Yoshinari <pf5y-inue@asahi-net.or.jp>, kern/8654.
2000-02-02 15:26:27 +00:00
thorpej 52242fdf9f Update for sys/buf.h/disksort_*() changes. 2000-01-21 23:28:59 +00:00
enami 9d51226cc3 fix typo in comment. 2000-01-20 03:19:27 +00:00
takemura ba04c55ed3 Absolute pointing device support.
- Wsmouse_input() get new argument 'flag', which indicates whether x/y/z are
   relative or absolute.
 - Wsmouse get new io controls, WSMOUSEIO_SCALIBCOORDS and
   WSMOUSEIO_GCALIBCOORDS.
2000-01-08 02:57:22 +00:00
thorpej 4560ac465a Split the PC-like keyboard controller driver into chip back-end and
bus front-end.
1999-12-03 22:48:22 +00:00
drochner 59e13361f3 make "i386_isa_chipset" globally visible so it can be used from outside
the "isa" bus, attach "pnpbios" pseudo-bus if configured
1999-11-12 18:39:38 +00:00
drochner 536f716be9 use console_debugger() on CTL-ALT-ESC to honour the ddb.onconsole sysctl 1999-11-10 16:52:14 +00:00
enami de37487d49 - Export initrtclock().
- Call it from apm_resume().

This fixes timer problem on some laptop after hybernation (PR#4808).
Reviewd by: fvdl@netbsd.org
1999-11-06 01:14:00 +00:00
drochner e5f51da9de -mask interrupts w/o a handler
-update PIC _after_ the interrupt handler is linked into the chain
This fixes problems with dynamically installed interrupt handlers:
Interrupts were enabled before the handler was installed under some
circumstances (esp. on faster machines), leading to endless interrupt
handling.
1999-10-25 14:49:41 +00:00
fvdl 7bae87cae4 Set variable i386_fpu_present to 1 if a functional FPU was detected. For
later retrieval by sysctl.
1999-10-06 20:03:51 +00:00
thorpej 11cae42531 Centralize the declaration and clearing of `cold'. 1999-09-17 19:59:35 +00:00
kleink 5663256d0a Unlike in an i386 a.out assembler, where in an .align n directive n is meant
to be the logarithm to base 2 of the alignment, in an ELF environment n is
the actual alignment boundary; thus, adjust the directives accordingly.

Albeit the wonderful i386 architecture doesn't mind the smaller alignment in
an obvious way, it is likely to have resulted in some performance penalty
during the a.out->ELF transition.
1999-08-23 08:24:36 +00:00
drochner 6bd627f17f back out last rev - it looks like a local hack which shouldn't go here,
and it breaks the "opms at pckbc" case
1999-08-19 15:33:16 +00:00
augustss db574ba708 Add umodem device. 1999-08-16 22:27:08 +00:00
wrstuden f3b3a1b98d If we get into pcclose() without a defined tty, just exit rather than
dereferencing a null pointer.
1999-07-26 19:31:54 +00:00
thorpej 14a2fa8169 Fix IPv6 software interrupt vector label. 1999-07-01 22:03:38 +00:00
itojun 427639cdce - Call ip6intr if INET6 is defined.
- remove "need-flag" for mac68k esp driver, as it is not used in anywhere
  and conflicts with IPsec ESP header.

This should be the only MD change in IPv6 support, except kernel config file.
Very sorry if you have any compilation problem with it (I believe it is okay).
If your favorite arch is not included in here, please add a
call to ip6intr() from softintr handle.
1999-06-28 08:20:40 +00:00
marc cd040ea927 s/mkdir/mkdir -p/, since not all the parents of $(FONTDIR) are
guaranteed to exist.
1999-06-23 04:29:28 +00:00
thorpej c5e6001ff8 Don't built most of the PCVT utilities; they're not really useful anymore,
now that we're trying to deprecate PCVT.

XXX Leave the fonts and font editor for now.
1999-06-04 18:47:33 +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
mycroft 7c33a450ba Recalculate delaytab[]. We need to round up in case we were on the edge of a
tick and the hardware mysteriously responds fast enough that the delay ends
up being 1 tick short.  An unlikely event, but just in case anything actually
relies on this...
1999-03-29 17:54:34 +00:00
mycroft c40877ff9d delay(): For small values of n, use a fixed lookup table. Also use
rtclock_tval as the limit, since this is what we actually programmed the chip
for.
1999-03-29 17:33:29 +00:00
mrg d2397ac5f7 completely remove Mach VM support. all that is left is the all the
header files as UVM still uses (most of) these.
1999-03-24 05:50:49 +00:00
mycroft 6ada3afd8b Reject variant numbers which are too large (so that a new version of isapnpdevs
with an old driver will not lose mysteriously).
1999-03-22 10:00:09 +00:00
mycroft 2cccf3bd4a Update callers of isapnp_devmatch(). 1999-03-22 09:44:12 +00:00
cgd 37d2c204a7 Moved to arch/i386/include/isa_machdep.h,v 1999-03-19 05:02:11 +00:00
cgd d00106ee06 if you pull in isavar.h, you don't need isa_machdep.h. 1999-03-19 04:58:45 +00:00
cgd d6d5f13551 Moved to arch/i386/include/isapnp_machdep.h,v 1999-03-19 03:18:54 +00:00
explorer 3ebb419571 Update to slightly altered rnd_attach_source() api 1999-02-28 17:08:05 +00:00
mycroft 0dbf3ab3ca Use DMAMODE_DEMAND. Not tested, but presumed to work. 1999-02-22 02:56:13 +00:00
mycroft 4449a6ef39 Kill vestiges of isa_establish(). 1999-02-19 16:15:06 +00:00
christos 21485fd1d6 noise reduction. 1999-02-13 16:45:28 +00:00
lukem dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
drochner b2c4a7b933 use mi data conversion functions, simplify inittodr() and resettodr() 1999-02-07 17:29:26 +00:00
drochner 0f145938b4 put all century related code into an own function clock_expandyear(),
touch the CMOS century byte only if the CMOS contents passes a
checksum test which qualifies it as "known compliant"
1999-02-07 16:18:00 +00:00
drochner bce7f71843 sort the dependencies between terminal devices a bit and add consistency
checks to catch conflicting devices at compile time
1999-02-06 18:46:21 +00:00
christos 0c8f3a4f31 Don't use obsolete sgtty crap. 1999-02-02 13:00:19 +00:00
christos d102972c3a Add a missing _C_LABEL(). Now an ELF kernel builds (if one removes the
-z flag from the ld line, in the Makefile)
1999-01-26 14:28:05 +00:00