Commit Graph

20 Commits

Author SHA1 Message Date
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
kleink aece7a90fd Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.
2005-09-06 21:40:37 +00:00
martin 149336137f Constify 2005-06-03 18:58:40 +00:00
tsutsui d0112ff334 - Use u_long or long rather than paddr_t for ARCBIOS function prototypes
as per the ARC specification. They are actually 64bit on MIPS64 based
  machines and our paddr_t is not equal to pointer size.
  (arc is ILP32 but has 64bit paddr_t)
- While here, change some unsigned long to u_long for consistency.
2005-04-18 15:38:00 +00:00
perry f31bd063e9 nuke trailing whitespace 2005-02-27 00:26:58 +00:00
sekiya 5a0e6a845d uint32_t -> unsigned long, per the differences between 32- and 64-bit ARCS. 2004-10-02 09:53:27 +00:00
sekiya 288adc68db ARCS on 64-bit platforms uses 64-bit pointers. This now works on my Octane. 2004-10-02 03:11:14 +00:00
pooka b9ae63d8be protect against multiple inclusion 2004-04-10 19:32:53 +00:00
sekiya 8a08952e14 Fix typo ("ARCBIOS_MEM_ExecptionBlock"). From Steve Rumble. 2003-12-29 06:26:41 +00:00
rafal d5afdde2ba Catch up to struct consdev changes. 2003-03-06 07:59:37 +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
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
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
rafal a76d350acc Fix component class/types to match reality for SGI's ARCS, which is just
different enough from stock ARC to be annoying.
2001-12-06 14:59:02 +00:00
lukem f61cbe7489 add RCSID 2001-11-13 12:51:12 +00:00
rafal ece8acc29b Make the ARCS console work again, by initializing the dev_t on arcbios init
rather than in the open entry point (where it's too late for cnopen).  Being
checked in from my Indy using the ARCS console on the graphics display.
2001-09-08 01:39:11 +00:00
thorpej 3f6eb8677a When we initialize the ARC BIOS, fetch the system ID structure
fields into local copies, as well as the Identifier string from
the System component.
2001-07-08 23:57:09 +00:00
thorpej 9d1d1b8a89 Make the field names in the system ID structure match the spec. 2001-07-08 23:56:03 +00:00
thorpej d93e047b19 Add routines to walk the ARC BIOS component tree. 2001-07-08 22:57:10 +00:00
thorpej e379ce3db0 Initial pass a ARC BIOS code that can be shared between the sgimips
and arc ports.
2001-07-08 19:58:02 +00:00