summaryrefslogtreecommitdiffstats
path: root/sys/dev/digi
Commit message (Collapse)AuthorAgeFilesLines
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-7/+7
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Be consistent about "static" functions: if the function is markedphk2002-09-281-4/+4
| | | | | | static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512
* Replace (ab)uses of "NULL" where "0" is really meant.archie2002-08-221-2/+2
|
* Make delay iteration counts a function of hz as the delay period in eachbrian2002-04-171-25/+21
| | | | | | | | loop is inversly proportional to hz. This makes things more sane for configurations with hz != 100. Cosmetic: Make the loops look similar to the loops in digi.c
* Make delay iteration counts a function of hz as the delay period in eachbrian2002-04-171-5/+5
| | | | | | | | loop is inversly proportional to hz. This makes things more sane for configurations with hz > 100. Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
* Yet another adjustment of digi_delay(). The delay is now consistentbrian2002-04-103-18/+19
| | | | irrespective of whether tsleep() or DELAY() is used.
* Change more uses of tsleep() to digi_delay() and make the loop counts morebrian2002-04-103-19/+22
| | | | sane.
* Add a digi_delay() function and use it instead of tsleep() when pollingbrian2002-04-101-5/+14
| | | | | | | | | the card for command completion. digi_delay() uses either tsleep() or DELAY() depending on the value of ``cold''. Pointed in the right direction by: jhb
* Use the PCI port for pci cards, not just for PCIXR cards.brian2002-04-101-6/+6
| | | | | | | | Add the card name to the error message for the first initialisation failure, giving us more info about what was actually discovered. This code has been tested by Robert Suetterlin <robert@mpe.mpg.de> to work on a PCI Xem card.
* Change linker_reference_module() so that it's passed a structbrian2002-04-101-2/+8
| | | | | | | | | | mod_depend * (which may be NULL). The only consumer of this function at the moment is digi_loadmoduledata(), and that passes a NULL mod_depend *. In linker_reference_module(), check to see if we've already got the required module loaded. If we have, bump the reference count and return that, otherwise continue the module search as normal.
* Add some missing MODULE_VERSIONsbrian2002-04-108-0/+9
| | | | | Without these, the kern_linker interface doesn't record these pseudo-drivers, making them unavailable via modlist_lookup2*().
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-011-3/+3
| | | | | | | | | | | | general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag. Discussed on: smp@
* Use suser() instead of checking cr_uid against 0 directly.jhb2002-03-261-1/+1
|
* Fix warnings. The driver would be more useful with a DRIVER_MODULE()peter2002-02-274-1/+5
| | | | entry so that it actually can do something.
* #include "opt_compat.h" so that the support for old ioctls can actuallybde2002-02-151-0/+2
| | | | | | | | | | | | be compiled. Old tty ioctls are still used (possibly ifdef'ed) in at least the following programs in the src tree: atc des ee fontedit gdb gdbserver lock ntp perl5 tcsh telnet top vttest rp.c: Unremoved used variables so that the support for old ioctls actually compiles. Not tested at runtime by: bde
* Staticise the con_bios and digi_devclass variables, since they aren't neededmsmith2002-01-082-3/+2
| | | | by anything else.
* - Fix a bunch of malloc calls where the M_FLAG is incorrectly used; itarr2001-12-071-5/+5
| | | | | | should be M_WAITOK. Spotted by: des
* devsw_add() and cdevsw_remove() are no longer needed.phk2001-11-044-27/+0
|
* Send a .4 second BREAK rather than a .25 second break so thatbrian2001-09-231-2/+2
| | | | | | | | | we're at least consistent with what tcsendbreak(3) is documented to do. MFC after: 2 weeks Note, the MFC will be to sys/dev/dgb/dgm.c on the RELENG_4 branch
* KSE Milestone 2julian2001-09-121-7/+7
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Allow individual ports to use alternate pin settings (swap dsr & cd)brian2001-06-202-12/+89
| | | | | | | | | | | via the new DIGIIO_SETALTPIN ioctl, and allow the port's ALTPIN setting to be queried via DIGIIO_GETALTPIN. The initial state and lock devices are normally used to set and/or lock ALTPIN settings although the device itself may also be used. ALTPIN settings are applied per-device and apply to both the callin and callout device at the same time.
* Use linker_reference_module() instead of hard-coding the digi_*brian2001-06-181-14/+7
| | | | module path.
* Credit John Prince and Eric Hernes for their work.brian2001-06-182-1/+6
|
* MALLOC -> malloc, FREE -> freebrian2001-05-221-5/+5
|
* #include <digi/*.h> -> #include <dev/digi/*.h>brian2001-05-193-9/+9
| | | | Suggested by: bde
* Fairwell digiio.h (moved to src/sys/sys)brian2001-05-191-61/+0
|
* digiio.h has moved to /usr/include/sysbrian2001-05-193-7/+7
|
* digiModel_t -> enum digi_modelbrian2001-05-173-10/+5
| | | | Remove a forgotton and unused structure.
* Remove all the mutex stuff - suggested by jhbbrian2001-05-084-49/+12
| | | | | | Tidy up includes, credit Slawa Olhovchenkov, John Prince and Eric Hernes for their efforts and add a couple of missing parenthesis around return expressions.
* sys/mutex.h requires sys/lock.h for LINTbrian2001-05-071-0/+1
| | | | Re-spotted by: phk
* Change COM_LOCK/COM_UNLOCK to a regular mutex - still conditional onbrian2001-05-074-25/+25
| | | | SMP being defined.
* Make LINT compile again.brian2001-05-061-0/+1
| | | | Spotted by: phk
* Only define DEBUG if it's undefined. This should eventually go, butbrian2001-05-021-0/+2
| | | | can stay for now in case of problems.
* Add a ``digi'' driver.brian2001-05-0233-0/+44161
This driver supports PCI Xr-based and ISA Xem Digiboard cards. dgm will go away soon if there are no problems reported. For now, configuring dgm into your kernel warns that you should be using digi. This driver is probably close to supporting Xi, Xe and Xeve cards, but I wouldn't expect them to work properly (hardware donations welcome). The digi_* pseudo-drivers are not drivers themselves but contain the BIOS and FEP/OS binaries for various digiboard cards and are auto-loaded and auto-unloaded by the digi driver at initialisation time. They *may* be configured into the kernel, but waste a lot of space if they are. They're intended to be left as modules. The digictl program is (mainly) used to re-initialise cards that have external port modules attached such as the PC/Xem.
OpenPOWER on IntegriCloud