summaryrefslogtreecommitdiff
path: root/sys/dev/digi
Commit message (Collapse)AuthorAgeFilesLines
* Make nokqfilter() return the correct return value.Poul-Henning Kamp2003-03-031-1/+1
| | | | | | | Ditch the D_KQFILTER flag which was used to prevent calling NULL pointers. Notes: svn path=/head/; revision=111821
* Gigacommit to improve device-driver source compatibility betweenPoul-Henning Kamp2003-03-031-14/+10
| | | | | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl) Notes: svn path=/head/; revision=111815
* Use canonical format for cdevsw initialization.Poul-Henning Kamp2003-03-021-14/+14
| | | | Notes: svn path=/head/; revision=111753
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-7/+7
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-7/+7
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* Be consistent about "static" functions: if the function is markedPoul-Henning Kamp2002-09-281-4/+4
| | | | | | | | | static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512 Notes: svn path=/head/; revision=104094
* Replace (ab)uses of "NULL" where "0" is really meant.Archie Cobbs2002-08-221-2/+2
| | | | Notes: svn path=/head/; revision=102291
* Make delay iteration counts a function of hz as the delay period in eachBrian Somers2002-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 Notes: svn path=/head/; revision=94950
* Make delay iteration counts a function of hz as the delay period in eachBrian Somers2002-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> Notes: svn path=/head/; revision=94949
* Yet another adjustment of digi_delay(). The delay is now consistentBrian Somers2002-04-103-18/+19
| | | | | | | irrespective of whether tsleep() or DELAY() is used. Notes: svn path=/head/; revision=94361
* Change more uses of tsleep() to digi_delay() and make the loop counts moreBrian Somers2002-04-103-19/+22
| | | | | | | sane. Notes: svn path=/head/; revision=94358
* Add a digi_delay() function and use it instead of tsleep() when pollingBrian Somers2002-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 Notes: svn path=/head/; revision=94340
* Use the PCI port for pci cards, not just for PCIXR cards.Brian Somers2002-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. Notes: svn path=/head/; revision=94323
* Change linker_reference_module() so that it's passed a structBrian Somers2002-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. Notes: svn path=/head/; revision=94321
* Add some missing MODULE_VERSIONsBrian Somers2002-04-108-0/+9
| | | | | | | | Without these, the kern_linker interface doesn't record these pseudo-drivers, making them unavailable via modlist_lookup2*(). Notes: svn path=/head/; revision=94320
* Change the suser() API to take advantage of td_ucred as well as do aJohn Baldwin2002-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@ Notes: svn path=/head/; revision=93593
* Use suser() instead of checking cr_uid against 0 directly.John Baldwin2002-03-261-1/+1
| | | | Notes: svn path=/head/; revision=93234
* Fix warnings. The driver would be more useful with a DRIVER_MODULE()Peter Wemm2002-02-274-1/+5
| | | | | | | entry so that it actually can do something. Notes: svn path=/head/; revision=91445
* #include "opt_compat.h" so that the support for old ioctls can actuallyBruce Evans2002-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 Notes: svn path=/head/; revision=90684
* Staticise the con_bios and digi_devclass variables, since they aren't neededMike Smith2002-01-082-3/+2
| | | | | | | by anything else. Notes: svn path=/head/; revision=89062
* - Fix a bunch of malloc calls where the M_FLAG is incorrectly used; itAndrew R. Reiter2001-12-071-5/+5
| | | | | | | | | should be M_WAITOK. Spotted by: des Notes: svn path=/head/; revision=87503
* devsw_add() and cdevsw_remove() are no longer needed.Poul-Henning Kamp2001-11-044-27/+0
| | | | Notes: svn path=/head/; revision=86026
* Send a .4 second BREAK rather than a .25 second break so thatBrian Somers2001-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 Notes: svn path=/head/; revision=83861
* KSE Milestone 2Julian Elischer2001-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 Notes: svn path=/head/; revision=83366
* Allow individual ports to use alternate pin settings (swap dsr & cd)Brian Somers2001-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. Notes: svn path=/head/; revision=78496
* Use linker_reference_module() instead of hard-coding the digi_*Brian Somers2001-06-181-14/+7
| | | | | | | module path. Notes: svn path=/head/; revision=78414
* Credit John Prince and Eric Hernes for their work.Brian Somers2001-06-182-1/+6
| | | | Notes: svn path=/head/; revision=78412
* MALLOC -> malloc, FREE -> freeBrian Somers2001-05-221-5/+5
| | | | Notes: svn path=/head/; revision=77004
* #include <digi/*.h> -> #include <dev/digi/*.h>Brian Somers2001-05-193-9/+9
| | | | | | | Suggested by: bde Notes: svn path=/head/; revision=76853
* Fairwell digiio.h (moved to src/sys/sys)Brian Somers2001-05-191-61/+0
| | | | Notes: svn path=/head/; revision=76850
* digiio.h has moved to /usr/include/sysBrian Somers2001-05-193-7/+7
| | | | Notes: svn path=/head/; revision=76848
* digiModel_t -> enum digi_modelBrian Somers2001-05-173-10/+5
| | | | | | | Remove a forgotton and unused structure. Notes: svn path=/head/; revision=76705
* Remove all the mutex stuff - suggested by jhbBrian Somers2001-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. Notes: svn path=/head/; revision=76358
* sys/mutex.h requires sys/lock.h for LINTBrian Somers2001-05-071-0/+1
| | | | | | | Re-spotted by: phk Notes: svn path=/head/; revision=76347
* Change COM_LOCK/COM_UNLOCK to a regular mutex - still conditional onBrian Somers2001-05-074-25/+25
| | | | | | | SMP being defined. Notes: svn path=/head/; revision=76327
* Make LINT compile again.Brian Somers2001-05-061-0/+1
| | | | | | | Spotted by: phk Notes: svn path=/head/; revision=76323
* Only define DEBUG if it's undefined. This should eventually go, butBrian Somers2001-05-021-0/+2
| | | | | | | can stay for now in case of problems. Notes: svn path=/head/; revision=76196
* Add a ``digi'' driver.Brian Somers2001-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. Notes: svn path=/head/; revision=76195