Commit Graph

67 Commits

Author SHA1 Message Date
wiz dc4cc98b15 becuase -> because. From Peter Postma. 2004-02-24 15:05:53 +00:00
jdolecek 917bc10805 g/c local index() routine and switch to (libkern's) strchr() 2003-11-01 12:56:32 +00:00
agc aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
jdolecek e0cc03a09b merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-10-23 09:10:23 +00:00
thorpej c5e91d447d Use CFATTACH_DECL(). 2002-10-02 04:55:47 +00:00
thorpej 9a711d6985 Declare all cfattach structures const. 2002-09-27 20:29:02 +00:00
gehenna 77a6b82b27 Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
thorpej 8f0c98bbe2 Statements must follow labels. 2002-05-30 20:03:27 +00:00
atatat 31144d9976 Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command".  ERESTART is -1, which can lead to
confusion.  ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4.  No ioctl code should now return -1 anywhere.  The
ioctl() system call is now properly restartable.
2002-03-17 19:40:26 +00:00
aymeric 1ea4df81a8 add __KERNEL_RCSID as suggested by Luke Mewburn 2002-01-28 09:56:43 +00:00
aymeric 9382c87338 - ANSIfy
- remove some trailing spaces/tabs
- minor style nits
2002-01-26 13:40:52 +00:00
scw 2963ff5c58 Add `l_poll' to `struct linesw' and provide an xxxpoll() entry point
in each tty driver to indirect through it.

This allows tty line-disciplines to handle poll(2) system calls.
2001-05-02 10:32:08 +00:00
aymeric 032ced3b65 Make these compile again, plus minor aesthetic changes. 2001-01-13 02:09:27 +00:00
eeh bc7363329c Adapt to new line discipline scheme. 2000-11-02 00:26:35 +00:00
is f0d88bea57 Prepare for AmigaPPC. 2000-05-25 19:10:04 +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
jonathan 466e784ee1 defopt DDB. 1998-07-04 22:18:13 +00:00
is 6c7f702633 - remove one level of soft interupt in the software autorepeat code
- WOPEN -> wopen
1998-03-25 22:14:13 +00:00
is 85c6760e2d Initialize keyboard structures also from kbdopen(), if necessary.
To do this, move the flag variable to kbdenable().
This will make kernels with serial console provice a working keyboard driver.
1998-02-23 00:47:30 +00:00
thorpej 0b6e56ec02 Adjust for changes to config. 1998-01-12 10:39:01 +00:00
veego 94b6312429 Get rid of __BROKEN_INDIRECT_CONFIG. 1996-12-23 09:09:49 +00:00
christos ca36ac9ef4 backout previous kprintf change 1996-10-13 03:05:43 +00:00
mhitch 3831c5a790 KDASSERT is now in lib/libkern/libkern.h, so we don't need
amiga/amiga/kdassert.h.
1996-10-12 17:27:28 +00:00
christos 946833855f printf -> kprintf, sprintf -> ksprintf 1996-10-10 23:51:21 +00:00
mycroft b3eac79b64 tty stop functions really should return void, not int, and certainly not both. 1996-09-02 06:43:16 +00:00
mhitch c16e87c7b7 Add tty_attach() calls for pstat -t. Closes PR #2519 1996-06-06 04:47:31 +00:00
is 1a41d54c27 Yet some more cleanup for missing prototypes, if DRACO is supported. 1996-05-19 19:03:01 +00:00
is f6ab1073c8 First part of M68060 and DraCo support.
* for the M68060 part: store buffer and branch target cache aren't
  enabled yet (this needs cleanup of lots of locore.s code which is a
  maze of little passages, all a little different) (and it wasn't yet
  tested in an accellerated Amiga, only in the DraCo).

  I've included a workaround for 2 of the CPU bugs in chips with Masks
  1F43G and earlier, but didn't bother to deal with the can of worms
  in the [0-3]D11W chips. Be sure to get "68060 rev. 1" or more
  reported at kernel startup time, or at least mention it (or the mask
  revision, if available) when reporting problems.

* for the DraCo: only machines with a CIA timer.

  I assigned machine id 32000+nn (0x7Dnn), where n is the machine
  readable Quicklogic custom chip revision (also printed at boot
  time).  "Guaranteed to work" up to rev. 3, newer DraCo's aren't
  guaranteed to have any CIA (we don't have a driver for the new timer
  yet).

  Supported are:

  - MF-II keyboards on the native interface and A3000 keyboards via
    the CIA.
  - builtin SCSI interface (yet another instance of siop)
  - CIA timer.
  - Zorro II devices which don't do DMA (don't get mapped to Zorro II
    address space in the DraCo)
  - "local bus" devices which are autoconfigured by the boot rom
    (should be all); only an Altais driver is there (looks like a Retina Z3)

  Not yet supported are:

  - native timer of newer machines.
  - Real Time Clock.
  - serial, parallel + floppy on the SuperIO chip (that is also: no mouse)

  XXX You need an enhanced boot loader, which will committed in a few days.

  XXX std.draco should and will go away.
1996-05-09 20:30:30 +00:00
veego 974e9f6e22 - Cleanup for -Wall and -Wstrict-prototypes
- Added support for multiple floppy drives
- CyberVision64:
        - has now a real console mode
        - another bugfix for boards with the new S3 chip
- Ariadne:
        - fixed crashes with aeput (mbuf failure)
1996-04-21 21:10:48 +00:00
mhitch b00a2c1e30 Clean up typos and other errors from new device attachment changes. 1996-03-17 05:53:57 +00:00
thorpej 5c67e5fad9 New device attachment scheme:
- split softc size and match/attach out from cfdriver into
	  a new struct cfattach.

	- new "attach" directive for files.*.  May specify the name of
	  the cfattach structure, so that devices may be easily attached
	  to parents with different autoconfiguration semantics.
1996-03-17 01:16:48 +00:00
mhitch a5c0ced572 Removed Debugger() declaration - the prototype is in sys/systm.h. 1996-03-16 08:19:43 +00:00
chopps d1d39c63d4 remove local strncmp (fixes #2115) 1996-02-24 07:44:06 +00:00
jtc 0cd793449e merge in changes from 1.1 release branch 1995-11-30 00:56:23 +00:00
chopps b2d4fa2dd3 cleanup warnings (fixes pr#1642) 1995-10-20 10:08:24 +00:00
chopps 78bd894529 add prototypes for isr stuff fixes pr# 1284 and 1569 1995-10-09 15:19:58 +00:00
chopps 34373365cb Add minimal dumpfile support.
Fix a bug in pt_enter_ptpage which caused MMU faults on low-mem conditions.
Change siop drivers to better handle sync.
Remove diag. done for ide -- its redundant as the ROM does similar.
fixed ite_filter to not panic if typing before the device is fully setup
All thanks to osymh@gemini.oscs.montana.edu (Michael L. Hitch)
1995-09-16 16:11:03 +00:00
chopps d25d16dd79 fix ITEIOC[GS]BELL and ITEIOCGREPT cases in iteioctl() 1995-05-14 14:26:00 +00:00
chopps 2ca98c3cb6 enable pseudo-dma on ivsc, allow no ite/grfcc. 1995-05-07 15:37:02 +00:00
chopps df9af2897a bring up-to-date with recent conf.c and sunos changes. 1995-04-23 18:24:21 +00:00
mycroft ab5eac8e84 Add dummy itestop(), and rename a few functions. 1995-04-10 09:11:41 +00:00
chopps b87e0d85e6 allow 8 bit chars in ite. 1995-03-02 04:41:51 +00:00
chopps 4726ce2818 consolidate the zbusses. le support for multiple tx buffs and full use of 32k
RAM. AGA dbl PAL mode added for console. Many changes to siop--most not
yet done. All from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
1994-12-28 09:24:55 +00:00
chopps 548708dd80 bring up to current. change sun to sunos. handle changes in device
open params and autoconf match function params.
1994-12-01 17:24:23 +00:00
cgd ec77f0b327 new RCS ID format. 1994-10-26 02:01:24 +00:00
chopps de7b5347d1 some various fixes from ahh@netcom.com (Andy Heffernan) 1994-06-23 05:39:09 +00:00
chopps 779ae81038 fix boot diag output. 1994-06-16 14:28:42 +00:00
chopps 6729c03f86 some cleanup and various fixes for new fs code. plus some general
fixes from from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
1994-06-13 08:12:30 +00:00
chopps c3cb65ac04 add grfrh (retina ziii) from Donn Cave <donn@u.washington.edu>
light cleanup from me.  floppy changes, should now be solid.
some changes to ite and ms to fix a couple bugs report by Donn.
1994-06-05 07:45:08 +00:00
chopps 6a73a3cd2e MIN/MAX->min/max 1994-05-31 03:11:42 +00:00