summaryrefslogtreecommitdiffstats
path: root/sys/pc98/cbus/sio.c
Commit message (Collapse)AuthorAgeFilesLines
* Merged from sys/isa/sio.c revision 1.335.nyan2001-06-261-1/+5
|
* Move the files from i386/isa/ic/ to dev/ic/.nyan2001-06-101-4/+4
|
* Remove unneeded includes of sys/ipl.h and machine/ipl.h.jhb2001-05-151-1/+0
|
* Merged from sys/isa/sio.c revision 1.330.kato2001-05-021-8/+9
|
* Send the remains (such as I have located) of "block major numbers" tophk2001-03-261-1/+0
| | | | the bit-bucket.
* Supported pcmcia modem card.nyan2001-02-251-4/+10
| | | | Submitted by: MURAMATSU Atsushi <amura@ma3.seikyou.ne.jp>
* Merged from sys/isa/sio.c revision 1.326.kato2001-02-211-2/+3
|
* Merged from sys/isa/sio.c revision 1.324 (sched_swi -> swi_sched).kato2001-02-131-12/+12
|
* RIP <machine/lock.h>.markm2001-02-111-4/+0
| | | | | | | Some things needed bits of <i386/include/lock.h> - cy.c now has its own (only) copy of the COM_(UN)LOCK() macros, and IMASK_(UN)LOCK() has been moved to <i386/include/apic.h> (AKA <machine/apic.h>). Reviewed by: jhb
* Change and clean the mutex lock interface.bmilekic2001-02-091-43/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mtx_enter(lock, type) becomes: mtx_lock(lock) for sleep locks (MTX_DEF-initialized locks) mtx_lock_spin(lock) for spin locks (MTX_SPIN-initialized) similarily, for releasing a lock, we now have: mtx_unlock(lock) for MTX_DEF and mtx_unlock_spin(lock) for MTX_SPIN. We change the caller interface for the two different types of locks because the semantics are entirely different for each case, and this makes it explicitly clear and, at the same time, it rids us of the extra `type' argument. The enter->lock and exit->unlock change has been made with the idea that we're "locking data" and not "entering locked code" in mind. Further, remove all additional "flags" previously passed to the lock acquire/release routines with the exception of two: MTX_QUIET and MTX_NOSWITCH The functionality of these flags is preserved and they can be passed to the lock/unlock routines by calling the corresponding wrappers: mtx_{lock, unlock}_flags(lock, flag(s)) and mtx_{lock, unlock}_spin_flags(lock, flag(s)) for MTX_DEF and MTX_SPIN locks, respectively. Re-inline some lock acq/rel code; in the sleep lock case, we only inline the _obtain_lock()s in order to ensure that the inlined code fits into a cache line. In the spin lock case, we inline recursion and actually only perform a function call if we need to spin. This change has been made with the idea that we generally tend to avoid spin locks and that also the spin locks that we do have and are heavily used (i.e. sched_lock) do recurse, and therefore in an effort to reduce function call overhead for some architectures (such as alpha), we inline recursion for this case. Create a new malloc type for the witness code and retire from using the M_DEV type. The new type is called M_WITNESS and is only declared if WITNESS is enabled. Begin cleaning up some machdep/mutex.h code - specifically updated the "optimized" inlined code in alpha/mutex.h and wrote MTX_LOCK_SPIN and MTX_UNLOCK_SPIN asm macros for the i386/mutex.h as we presently need those. Finally, caught up to the interface changes in all sys code. Contributors: jake, jhb, jasone (in no particular order)
* Remove count for NSIO. The only places it was used it were incorrect.peter2001-01-311-1/+0
| | | | (alpha-gdbstub.c got sync'ed up a bit with the i386 version)
* Merged from sys/isa/sio.c revision 1.320.nyan2001-01-271-149/+85
|
* Merged from the following changes.nyan2000-11-051-7/+12
| | | | | | | | | | sys/conf/Makefile.i386 1.211 sys/conf/files.i386 1.329 sys/isa/fd.c 1.186, 1.188 and 1.189 sys/isa/sio.c 1.305 and 1.317 sys/i386/conf/GENERIC 1.270, 1.281, 1.282 and 1.284 sys/i386/i386/machdep.c 1.419 sys/i386/i386/userconfig.c 1.184
* Catch up to the new swi code.jhb2000-10-251-2/+2
| | | | Noticed by: phk
* - Overhaul the software interrupt code to use interrupt threads for eachjhb2000-10-251-13/+13
| | | | | | | | | | | | | | | | | | | type of software interrupt. Roughly, what used to be a bit in spending now maps to a swi thread. Each thread can have multiple handlers, just like a hardware interrupt thread. - Instead of using a bitmask of pending interrupts, we schedule the specific software interrupt thread to run, so spending, NSWI, and the shandlers array are no longer needed. We can now have an arbitrary number of software interrupt threads. When you register a software interrupt thread via sinthand_add(), you get back a struct intrhand that you pass to sched_swi() when you wish to schedule your swi thread to run. - Convert the name of 'struct intrec' to 'struct intrhand' as it is a bit more intuitive. Also, prefix all the members of struct intrhand with 'ih_'. - Make swi_net() a MI function since there is now no point in it being MD. Submitted by: cp
* Remove unneeded #include <machine/clock.h>phk2000-10-151-1/+0
|
* Merged from sys/isa/sio.c revision 1.316.kato2000-10-061-1/+1
|
* Merged from sys/isa/sio.c revision 1.315.kato2000-09-221-7/+26
|
* Merged from sys/i386/isa/sio.c revision 1.314.kato2000-09-151-0/+1
|
* Merged from sys/isa/sio.c revision 1.312.kato2000-09-131-0/+9
|
* Merged from sys/isa/sio.c revisions 1.309 - 1.311.kato2000-09-081-9/+25
|
* Merged from sys/isa/sio.c revision 1.306, 1.307 and 1.308.kato2000-09-071-37/+110
|
* Previous commit changing SYSCTL_HANDLER_ARGS violated KNF.phk2000-07-041-1/+1
| | | | Pointed out by: bde
* Style police catches up with rev 1.26 of src/sys/sys/sysctl.h:phk2000-07-031-1/+1
| | | | | | | | Sanitize SYSCTL_HANDLER_ARGS so that simplistic tools can grog our sources: -sysctl_vm_zone SYSCTL_HANDLER_ARGS +sysctl_vm_zone (SYSCTL_HANDLER_ARGS)
* Fixed to support RSA98-III non-pnp mode. rman_get_start() had returnednyan2000-06-211-29/+37
| | | | | | iobase + 8 because the I/O address table for RSA98-III starts with +8. Now, bus_alloc_resource() is used instead of isa_alloc_resourcev() if device type is RSA98III.
* Use bus_space stuff except where it needs high performance.nyan2000-05-121-413/+309
|
* Release allocated resources and return ENXIO on error.nyan2000-04-221-7/+16
|
* Merged from sys/isa/sio.c revisions 1.293 and 1.294.kato2000-04-011-14/+123
|
* Merged from sys/i386/isa/clock.c and sys/isa/sio.c revisions 1.150 andkato2000-03-231-0/+1
| | | | 1.292, respectively.
* Merged from sys/isa/sio.c revision 1.291.kato2000-03-121-14/+19
|
* Merged from sys/isa/sio.c revisions 1.289 and 1.290.kato2000-03-101-2/+1
|
* Merged from sys/isa/sio.c rev 1.288.kato2000-02-171-13/+17
|
* Synced with sys/isa/sio.c rev 1.287.kato2000-01-291-1/+8
|
* Return ENXIO on error.kato2000-01-241-2/+2
| | | | Submitted by: n_hibma
* Synced with sys/isa/sio.c rev 1.285.kato2000-01-201-0/+7
|
* Synced with sys/isa/sio.c rev 1.284.kato2000-01-131-3/+3
|
* Synced with sys/isa/sio.c rev 1.282.kato1999-12-271-5/+48
|
* Merge from sys/isa/sio.c rev 1.279.kato1999-12-101-12/+18
|
* Merge from sys/isa/sio.c rev 1.277 & 1.278.kato1999-12-071-22/+29
|
* Supported i8251 (internal COM1) FIFO mode.nyan1999-12-061-56/+214
| | | | Submitted by: tanimura and nyan
* Sync with sys/isa/sio.c revision 1.276.nyan1999-12-011-16/+4
|
* - Fixed to support RSB-384/2000/3000.nyan1999-11-291-42/+35
| | | | - Fixed warnings.
* Sync with sys/isa/sio.c revision up to 1.275.nyan1999-11-181-110/+160
|
* Support RSA-98III PnP mode.nyan1999-11-031-0/+11
|
* Sync with sys/isa/sio.c revision from 1.269 to 1.273.nyan1999-11-031-109/+101
|
* Remove five now unused fields from struct cdevsw. They should neverphk1999-09-251-5/+0
| | | | | | | | have been there in the first place. A GENERIC kernel shrinks almost 1k. Add a slightly different safetybelt under nostop for tty drivers. Add some missing FreeBSD tags
* This patch clears the way for removing a number of tty relatedphk1999-09-251-24/+8
| | | | | | | | | | | | | | | | | | | | | fields in struct cdevsw: d_stop moved to struct tty. d_reset already unused. d_devtotty linkage now provided by dev_t->si_tty. These fields will be removed from struct cdevsw together with d_params and d_maxio Real Soon Now. The changes in this patch consist of: initialize dev->si_tty in *_open() initialize tty->t_stop remove devtotty functions rename ttpoll to ttypoll a few adjustments to these changes in the generic code a bump of __FreeBSD_version add a couple of FreeBSD tags
* Fixed missing changes from sys/isa/sio.c.nyan1999-09-121-202/+110
|
* Change isa_get/set_flags() to device_get/set_flags().kato1999-09-071-10/+10
| | | | Submitted by: dfr
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
OpenPOWER on IntegriCloud