aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ppbus
Commit message (Collapse)AuthorAgeFilesLines
* Generate correct DLT_NULL headers before passing packets to bpf.Dag-Erling Smørgrav1999-02-081-30/+43
| | | | | | | | | | | | Do not modify m_len before passing mbuf chains to bpf. Don't forget to pass packets to bpf when running in Crynwr mode (LINK0). Partially based on a patch by Bill Fenner <fenner@freebsd.org>. PR: bin/7241 Notes: svn path=/head/; revision=43773
* Bring in the simplified port probe from src/sys/i386/isa/lpt.cDag-Erling Smørgrav1999-02-081-26/+20
| | | | Notes: svn path=/head/; revision=43772
* Fix compile warnings about missing braces around static initialization of ↵Nicolas Souchu1999-01-311-22/+22
| | | | | | | unions. Notes: svn path=/head/; revision=43460
* Distinguish EPP address/data register. Add EPP address register access to ppi.Nicolas Souchu1999-01-308-46/+72
| | | | | | | | | | | Change microseq offsets. Previously, offsets of the program counter where added to the index of the current microinstruction. Make them rely on the index of the next executed microinstruction. Suggested by: Luigi Rizzo <luigi@labinfo.iet.unipi.it> Notes: svn path=/head/; revision=43433
* Fix warnings in preparation for adding -Wall -Wcast-qual to theMatthew Dillon1999-01-272-12/+12
| | | | | | | kernel compile Notes: svn path=/head/; revision=43301
* Fix warnings preparing for -Wall -Wcast-qualMatthew Dillon1999-01-273-9/+10
| | | | | | | | Also disable one usb module in LINT due to fatal compilation errors, temporary. Notes: svn path=/head/; revision=43295
* Fix PPBPRI #define - it was missing parenthesis which messed up aMatthew Dillon1999-01-271-2/+2
| | | | | | | call to tsleep() in dev/ppbus/ppbconf.c. Also fixup initializers. Notes: svn path=/head/; revision=43293
* Replace DEBUG by PLIP_DEBUG optionNicolas Souchu1999-01-231-6/+4
| | | | Notes: svn path=/head/; revision=43109
* Terminate negociation if Ext. link negociation succeeds. This avoidsNicolas Souchu1999-01-141-1/+8
| | | | | | | the unknown mode panic during boot probe. Notes: svn path=/head/; revision=42668
* Replace includes of <sys/kernel.h> with includes ofJohn Polstra1999-01-141-2/+2
| | | | | | | | <sys/linker_set.h> in those files that use only the linker set definitions. Notes: svn path=/head/; revision=42654
* Fix missing \n in boot printfs. Add more mode detection if bootverbose.Nicolas Souchu1999-01-111-24/+30
| | | | Notes: svn path=/head/; revision=42536
* Fix broken low level ppb_rxxx() return type: char becomes u_char.Nicolas Souchu1999-01-102-11/+9
| | | | | | | | | Submitted by: Bruce Evans <bde@zeta.org.au> Some ppb bootup printfs simplified. Notes: svn path=/head/; revision=42482
* Major ppbus commit with:Nicolas Souchu1999-01-1014-212/+1422
| | | | | | | | | | | | | | | | | | | | | | + ECP parallel port chipset FIFO detection + DMA+FIFO parallel I/O handled as chipset specific + nlpt updated in order to use the above enhanced parallel I/O. Use 'lptcontrol -e' to use enhanced I/O + Various options documented in LINT + Full IEEE1284 NIBBLE and BYTE modes support. See ppbus(4) for an overview of the IEEE1284 standard + Detection of PnP parallel devices at boot + Read capability added to nlpt driver to get IEEE1284 compliant printer status with a simple 'cat /dev/lpt0' + IEEE1284 peripheral emulation added to BYTE mode. Two computers may dialog according to IEEE1284 signaling method. See PERIPH_1284 option and /sys/dev/ppbus/ppi.c All this code is supposed to provide basic functions for IEEE1284 programming. ppi.c and nlpt.c may act as examples. Notes: svn path=/head/; revision=42475
* Fix Linux compatible mode. ppb_rxxx() calls are chars, inb() is int.Nicolas Souchu1999-01-091-8/+7
| | | | Notes: svn path=/head/; revision=42443
* Fix the disappearing da0 problem.Nicolas Souchu1999-01-091-1/+5
| | | | | | | Submited by: Doug Rabson <dfr@nlsystems.com> Notes: svn path=/head/; revision=42441
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticArchie Cobbs1998-12-076-18/+12
| | | | | | | and local variables, goto labels, and functions declared but not defined. Notes: svn path=/head/; revision=41591
* Eliminate a zillion "left-hand operand of comma expression has no effect"Archie Cobbs1998-12-041-22/+26
| | | | | | | compiler warnings when NLPT_DEBUG is not defined. Notes: svn path=/head/; revision=41512
* Release the ppbus when probe fails.Nicolas Souchu1998-11-091-2/+5
| | | | Notes: svn path=/head/; revision=41042
* Define DEBUG only if not already defined, avoiding confusions withNicolas Souchu1998-11-071-1/+3
| | | | | | | opt_global.h Notes: svn path=/head/; revision=40993
* lpbb is the official Philips parallel I2C interface. lpbb.c contains onlyNicolas Souchu1998-10-312-7/+340
| | | | | | | | | basic i/o functions, bit-banging mechanism is implemented by dev/iicbus/iicbb.c immio.c: some bootverbose logs to watch zip+ connect/disconnect process Notes: svn path=/head/; revision=40783
* Don't complain about SIOCGIFMEDIA; it's harmless and not somethingMike Smith1998-10-241-1/+8
| | | | | | | | | useful here yet. Submitted by: markm and others Notes: svn path=/head/; revision=40626
* Add missing newline in probe message.Dag-Erling Smørgrav1998-10-071-2/+2
| | | | | | | | PR: kern/8168 Submitted by: Stefan Eggers <seggers@semyam.dinoco.de> Notes: svn path=/head/; revision=40039
* abort imm init if can't disconnect from driveNicolas Souchu1998-10-021-1/+2
| | | | Notes: svn path=/head/; revision=39900
* - port of vpo code to CAMNicolas Souchu1998-09-207-211/+357
| | | | | | | | | | | - ppbus was released before checking if still in disk_mode by vpoio and immio: the microseq (in_disk_mode) was never executed. Fixed. - nlptintr() renamed to nlpt_intr(). spltty() inserted in nlptintr() before nlpt_intr() call Notes: svn path=/head/; revision=39520
* unused function removed (byte_1284_inbyte)Nicolas Souchu1998-09-131-34/+1
| | | | Notes: svn path=/head/; revision=39141
* Lowlevel i/o routines for ZIP+ support. Mostly written with microseqNicolas Souchu1998-09-131-0/+771
| | | | | | | mechanism Notes: svn path=/head/; revision=39136
* ppbus enhanced to support ZIP+ : 1284 code added, microseq improved +Nicolas Souchu1998-09-1310-129/+286
| | | | | | | some bugs corrected in vpoio. Notes: svn path=/head/; revision=39134
* Only claim PPS_HARDPPSONASSERT if we're compiled with PPS_SYNCPoul-Henning Kamp1998-08-241-1/+5
| | | | Notes: svn path=/head/; revision=38523
* Fixed printf format errors.Bruce Evans1998-08-171-2/+2
| | | | Notes: svn path=/head/; revision=38373
* Removed unused includes.Bruce Evans1998-08-121-14/+1
| | | | Notes: svn path=/head/; revision=38286
* Major ppbus updates from the author.Mike Smith1998-08-0313-788/+2447
| | | | | | | | | | | | | | | | | | | | - ppbus now supports PLIP via the if_plip driver - ieee1284 infrastructure added, including parallel-port PnP - port microsequencer added, for scripting the sort of port I/O that is common with parallel devices without endless calls up and down through the driver structure. - improved bus ownership behaviour among the ppbus-using drivers. - improved I/O chipset feature detection The vpo driver is now implemented using the microsequencer, leading to some performance improvements as well as providing an extensive example of its use. Reviewed by: msmith Submitted by: Nicolas Souchu <Nicolas.Souchu@prism.uvsq.fr> Notes: svn path=/head/; revision=38061
* Removed unused includes.Bruce Evans1998-06-211-2/+1
| | | | Notes: svn path=/head/; revision=37101
* Introduce std_pps_ioctl() to automagically DTRT.Poul-Henning Kamp1998-06-131-32/+2
| | | | | | | Add scaling capability to timex.offset, ntpd-4.0.73 will support this. Notes: svn path=/head/; revision=36941
* Update to draft-mogul-pps-api-02.txt as submitted to IETFPoul-Henning Kamp1998-06-121-6/+15
| | | | Notes: svn path=/head/; revision=36938
* Fixed an ioctl which grew overnight.Bruce Evans1998-06-081-2/+2
| | | | Notes: svn path=/head/; revision=36748
* This is a prototype implementation of the draft-mogul-pps-api-##.txtPoul-Henning Kamp1998-06-072-50/+62
| | | | | | | | | | | | paper. It will be updated along with the draft and possible subsequent standard. The ppbus based pps driver is updated to implement this API. Notes: svn path=/head/; revision=36739
* This commit fixes various 64bit portability problems required forDoug Rabson1998-06-072-4/+4
| | | | | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time. Notes: svn path=/head/; revision=36735
* Support compiling with `gcc -ansi'.Bruce Evans1998-04-151-8/+8
| | | | Notes: svn path=/head/; revision=35210
* Delete apparently unused DEVFS control device creation code - codeEivind Eklund1998-02-161-4/+1
| | | | | | | | didn't even compile. A (now seemingly correct) devfs node is still created. Notes: svn path=/head/; revision=33442
* A bunch of nits from bde.Poul-Henning Kamp1998-02-151-68/+60
| | | | | | | | Make the name "pps" all over the place. Remove the hardcoded 10us offset, use sawtooth for it. Notes: svn path=/head/; revision=33396
* Man, twice in as many days. Gotta learn to check that uname.Poul-Henning Kamp1998-02-131-10/+10
| | | | Notes: svn path=/head/; revision=33326
* Add a skelleton pulse-per-second timing driver. This will become morePoul-Henning Kamp1998-02-131-0/+222
| | | | | | | useful when I get my timecounter changes past the Bruce-filter. Notes: svn path=/head/; revision=33323
* Staticize.Eivind Eklund1998-02-091-2/+2
| | | | Notes: svn path=/head/; revision=33181
* Make the debug options new-style.Eivind Eklund1998-01-311-1/+4
| | | | | | | | This also zaps a DPT option from lint; it wasn't referenced from anywhere. Notes: svn path=/head/; revision=32929
* Make all file-system (MFS, FFS, NFS, LFS, DEVFS) related option new-style.Eivind Eklund1998-01-241-1/+3
| | | | | | | | | | | This introduce an xxxFS_BOOT for each of the rootable filesystems. (Presently not required, but encouraged to allow a smooth move of option *FS to opt_dontuse.h later.) LFS is temporarily disabled, and will be re-enabled tomorrow. Notes: svn path=/head/; revision=32726
* Actually implement the internals of the 'ppi' device.Mike Smith1998-01-022-17/+94
| | | | | | | | | It is now possible to control the various parallel port signals from user-space programs without having to resort to opening /dev/io directly. Notes: svn path=/head/; revision=32178
* In all such uses of struct buf: 's/b_un.b_addr/b_data/g'Poul-Henning Kamp1997-12-021-2/+2
| | | | Notes: svn path=/head/; revision=31493
* Oops, the previous change applied a reversed patch.Bruce Evans1997-09-011-1/+3
| | | | Notes: svn path=/head/; revision=29020
* Removed unused #includes. The !KERNEL case may be more broken than before.Bruce Evans1997-09-016-61/+6
| | | | Notes: svn path=/head/; revision=28980
* Added #include of <sys/queue.h> to make this self-sufficient.Bruce Evans1997-09-011-1/+3
| | | | | | | | | Includers of this file apparently didn't know that <sys/queue.h> was a prerequisite and include a semi-random collection headers until one happened to include it. Notes: svn path=/head/; revision=28978