summaryrefslogtreecommitdiff
path: root/sys/dev/ppbus/pps.c
Commit message (Collapse)AuthorAgeFilesLines
* Unused include: #include "pps.h"Peter Wemm2000-06-101-1/+0
| | | | Notes: svn path=/head/; revision=61490
* Remove ~25 unneeded #include <sys/conf.h>Poul-Henning Kamp2000-04-191-1/+0
| | | | | | | Remove ~60 unneeded #include <sys/malloc.h> Notes: svn path=/head/; revision=59391
* Isolate the Timecounter internals in their own two files.Poul-Henning Kamp2000-03-201-0/+1
| | | | | | | | | | | | | | | | | | Make the public interface more systematically named. Remove the alternate method, it doesn't do any good, only ruins performance. Add counters to profile the usage of the 8 access functions. Apply the beer-ware to my code. The weird +/- counts are caused by two repocopies behind the scenes: kern/kern_clock.c -> kern/kern_tc.c sys/time.h -> sys/timetc.h (thanks peter!) Notes: svn path=/head/; revision=58377
* Some newbus-inspired tidy-ups. Use device_identify() rather than scanningPeter Wemm2000-01-231-20/+21
| | | | | | | | | | | | | | | the resource table to locate children. The 'at ppbus?' can go again. Remove a few #if Nxxx > 0' type things, config arranges this for us. Move the newbus method glue next to the DRIVER_MODULE() stuff so we don't need extra prototypes. Don't set device descriptions until after the possibility of the probe returning an error. Remove all cdevsw_add() calls, all the drivers that did this also use make_dev() correctly, so it's not required. A couple of other minor nits. Notes: svn path=/head/; revision=56455
* Port of ppbus standalone framework to the newbus system.Nicolas Souchu2000-01-141-55/+89
| | | | | | | | | | | | | | | | | | | | | | | | Note1: the correct interrupt level is invoked correctly for each driver. For this purpose, drivers request the bus before being able to call BUS_SETUP_INTR and BUS_TEARDOWN_INTR call is forced by the ppbus core when drivers release it. Thus, when BUS_SETUP_INTR is called at ppbus driver level, ppbus checks that the caller owns the bus and stores the interrupt handler cookie (in order to unregister it later). Printing is impossible while plip link is up is still TRUE. vpo (ZIP driver) and lpt are make in such a way that using the ZIP and printing concurrently is permitted is also TRUE. Note2: specific chipset detection is not done by default. PPC_PROBE_CHIPSET is now needed to force chipset detection. If set, the flags 0x40 still avoid detection at boot. Port of the pcf(4) driver to the newbus system (was previously directly connected to the rootbus and attached by a bogus pcf_isa_probe function). Notes: svn path=/head/; revision=55939
* Remove five now unused fields from struct cdevsw. They should neverPoul-Henning Kamp1999-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 Notes: svn path=/head/; revision=51658
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Remove compile time limit on number of devices.Poul-Henning Kamp1999-08-081-25/+17
| | | | Notes: svn path=/head/; revision=49550
* Simplify cdevsw registration.Poul-Henning Kamp1999-05-311-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The cdevsw_add() function now finds the major number(s) in the struct cdevsw passed to it. cdevsw_add_generic() is no longer needed, cdevsw_add() does the same thing. cdevsw_add() will print an message if the d_maj field looks bogus. Remove nblkdev and nchrdev variables. Most places they were used bogusly. Instead check a dev_t for validity by seeing if devsw() or bdevsw() returns NULL. Move bdevsw() and devsw() functions to kern/kern_conf.c Bump __FreeBSD_version to 400006 This commit removes: 72 bogus makedev() calls 26 bogus SYSINIT functions if_xe.c bogusly accessed cdevsw[], author/maintainer please fix. I4b and vinum not changed. Patches emailed to authors. LINT probably broken until they catch up. Notes: svn path=/head/; revision=47640
* This commit should be a extensive NO-OP:Poul-Henning Kamp1999-05-301-6/+22
| | | | | | | | | | | | | | | | Reformat and initialize correctly all "struct cdevsw". Initialize the d_maj and d_bmaj fields. The d_reset field was not removed, although it is never used. I used a program to do most of this, so all the files now use the same consistent format. Please keep it that way. Vinum and i4b not modified, patches emailed to respective authors. Notes: svn path=/head/; revision=47625
* GC unused pps_drvinit() declarationPeter Wemm1999-05-061-2/+1
| | | | Notes: svn path=/head/; revision=46589
* Allow multiple opens.Poul-Henning Kamp1999-04-251-5/+10
| | | | Notes: svn path=/head/; revision=46053
* Reduce Bruce-filter verbosity.Poul-Henning Kamp1999-03-131-7/+3
| | | | Notes: svn path=/head/; revision=44723
* Make even more of the PPSAPI implementations generic.Poul-Henning Kamp1999-03-111-53/+22
| | | | | | | | | | | FLL support in hardpps() Various magic shuffles and improved comments Style fixes from Bruce. Notes: svn path=/head/; revision=44666
* Distinguish EPP address/data register. Add EPP address register access to ppi.Nicolas Souchu1999-01-301-1/+7
| | | | | | | | | | | 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
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticArchie Cobbs1998-12-071-2/+3
| | | | | | | and local variables, goto labels, and functions declared but not defined. Notes: svn path=/head/; revision=41591
* Only claim PPS_HARDPPSONASSERT if we're compiled with PPS_SYNCPoul-Henning Kamp1998-08-241-1/+5
| | | | Notes: svn path=/head/; revision=38523
* Major ppbus updates from the author.Mike Smith1998-08-031-1/+2
| | | | | | | | | | | | | | | | | | | | - 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-071-49/+60
| | | | | | | | | | | | 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
* 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