summaryrefslogtreecommitdiff
path: root/sys/dev/ppbus
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagrelease/4.2.0_cvscvs2svn2000-11-2022-22/+22
| | | | | | | 'RELENG_4_2_0_RELEASE'. This commit was manufactured to restore the state of the 4.2-RELEASE image. Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
* Fix a style(9) indentation problem by syncing whitespace with -currentPeter Wemm2000-08-071-3/+3
| | | | Notes: svn path=/stable/4/; revision=64353
* MFC: 1.25: fix unused variable warningPeter Wemm2000-08-071-2/+0
| | | | Notes: svn path=/stable/4/; revision=64352
* MFC: make the recognition of Zip drives work.Nick Hibma2000-08-011-2/+3
| | | | Notes: svn path=/stable/4/; revision=64116
* MFC: Use MI lptio.h, rather than MD lpt.h.David E. O'Brien2000-07-071-2/+1
| | | | Notes: svn path=/stable/4/; revision=62728
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2000-05-241-0/+24
| | | | Notes: svn path=/stable/4/; revision=60898
* MFC:Nick Hibma2000-05-2412-24/+28
| | | | | | | | | - use malloc instead of buffers (phk). - put more code between ifdefs. - remove superfluous includes. Notes: svn path=/stable/4/; revision=60838
* MFC: Add automatic rescan functionality. Add 2 includes that should haveNick Hibma2000-05-071-9/+37
| | | | | | | been there. Remove the unnecessary creation of a cam_path. Notes: svn path=/stable/4/; revision=60198
* MFC: rev.1.16, crash on read() of lpctlX fixBrian Feldman2000-03-151-0/+5
| | | | Notes: svn path=/stable/4/; revision=58083
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2000-03-131-24/+0
| | | | Notes: svn path=/stable/4/; revision=57955
* Fix buffer overrun in pcfclock_read(). The submitter is the originalSheldon Hearn2000-02-201-0/+3
| | | | | | | | | | | author of the affected code. PR: 16552 Submitted by: Sascha Schumann <sascha@schumann.cx> Approved by: jkh Notes: svn path=/head/; revision=57352
* Fix two warnings.Peter Wemm2000-02-132-2/+2
| | | | Notes: svn path=/head/; revision=57177
* Fix system hang when printer locks on missing paperNicolas Souchu2000-02-081-2/+2
| | | | | | | | | (also called the "printer fiasco") Approved by: jkh Notes: svn path=/head/; revision=57064
* Make this lot build on alpha.Doug Rabson2000-01-253-4/+6
| | | | Notes: svn path=/head/; revision=56618
* Some newbus-inspired tidy-ups. Use device_identify() rather than scanningPeter Wemm2000-01-238-255/+195
| | | | | | | | | | | | | | | 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
* Add parallel port clock driver.Jordan K. Hubbard2000-01-191-0/+348
| | | | | | | Submitted by: Sascha Schumann <sascha@schumann.cx> Notes: svn path=/head/; revision=56293
* Make this compile - missing ")";Peter Wemm2000-01-141-1/+1
| | | | Notes: svn path=/head/; revision=55977
* ppi needs to use a bus method to get this rather than peering inside theNicolas Souchu2000-01-143-4/+6
| | | | | | | | | 1284 stuff. Submitted by: Peter Wemm <peter@netplex.com.au> Notes: svn path=/head/; revision=55957
* Port of ppbus standalone framework to the newbus system.Nicolas Souchu2000-01-1418-1402/+1603
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-296-21/+21
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55205
* Incorrect NULL -> 0Eivind Eklund1999-12-201-3/+3
| | | | Notes: svn path=/head/; revision=54903
* Remove the 'ivars' arguement to device_add_child() andMatthew N. Dodd1999-12-031-2/+2
| | | | | | | | | | | | | | | | | | | device_add_child_ordered(). 'ivars' may now be set using the device_set_ivars() function. This makes it easier for us to change how arbitrary data structures are associated with a device_t. Eventually we won't be modifying device_t to add additional pointers for ivars, softc data etc. Despite my best efforts I've probably forgotten something so let me know if this breaks anything. I've been running with this change for months and its been quite involved actually isolating all the changes from the rest of the local changes in my tree. Reviewed by: peter, dfr Notes: svn path=/head/; revision=54073
* Print more verbose debugging outputNick Hibma1999-10-051-7/+10
| | | | | | | Clean up computation of parameters. Notes: svn path=/head/; revision=51952
* Remove five now unused fields from struct cdevsw. They should neverPoul-Henning Kamp1999-09-253-15/+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
* Remove NBPF conditionality of bpf calls in most of our network drivers.Poul-Henning Kamp1999-09-251-15/+0
| | | | | | | | | | | | | | | This means that we will not have to have a bpf and a non-bpf version of our driver modules. This does not open any security hole, because the bpf core isn't loadable The drivers left unchanged are the "cross platform" drivers where the respective maintainers are urged to DTRT, whatever that may be. Add a couple of missing FreeBSD tags. Notes: svn path=/head/; revision=51646
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2819-19/+19
| | | | Notes: svn path=/head/; revision=50477
* Convert DEVFS hooks in (most) drivers to make_dev().Poul-Henning Kamp1999-08-231-18/+5
| | | | | | | | | | | | | | | | | | | Diskslice/label code not yet handled. Vinum, i4b, alpha, pc98 not dealt with (left to respective Maintainers) Add the correct hook for devfs to kern_conf.c The net result of this excercise is that a lot less files depends on DEVFS, and devtoname() gets more sensible output in many cases. A few drivers had minor additional cleanups performed relating to cdevsw registration. A few drivers don't register a cdevsw{} anymore, but only use make_dev(). Notes: svn path=/head/; revision=50254
* Add pin-numbers for easy reference.Poul-Henning Kamp1999-08-181-11/+12
| | | | Notes: svn path=/head/; revision=50024
* Remove compile time limit on number of devices.Poul-Henning Kamp1999-08-081-25/+17
| | | | Notes: svn path=/head/; revision=49550
* Passing the unit number to an interrupt routing is kind of narrowminded,Poul-Henning Kamp1999-08-082-2/+7
| | | | | | | add a way to get the entire struct ppb_device back. Notes: svn path=/head/; revision=49549
* Alter the behavior of sys/kern/subr_bus.c:device_print_child()Matthew N. Dodd1999-07-291-11/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - device_print_child() either lets the BUS_PRINT_CHILD method produce the entire device announcement message or it prints "foo0: not found\n" Alter sys/kern/subr_bus.c:bus_generic_print_child() to take on the previous behavior of device_print_child() (printing the "foo0: <FooDevice 1.1>" bit of the announce message.) Provide bus_print_child_header() and bus_print_child_footer() to actually print the output for bus_generic_print_child(). These functions should be used whenever possible (unless you can just use bus_generic_print_child()) The BUS_PRINT_CHILD method now returns int instead of void. Modify everything else that defines or uses a BUS_PRINT_CHILD method to comply with the above changes. - Devices are 'on' a bus, not 'at' it. - If a custom BUS_PRINT_CHILD method does the same thing as bus_generic_print_child(), use bus_generic_print_child() - Use device_get_nameunit() instead of both device_get_name() and device_get_unit() - All BUS_PRINT_CHILD methods return the number of characters output. Reviewed by: dfr, peter Notes: svn path=/head/; revision=49195
* Rename bpfilter to bpf.Dag-Erling Smørgrav1999-07-061-9/+9
| | | | Notes: svn path=/head/; revision=48645
* Remove unused variable and computation, possibly leading to aNick Hibma1999-06-261-4/+1
| | | | | | | | | | | | | divide by zero fault. Possible fix for PR12041 PR: 12041 Submitted-By: J.Hudson@massey.ac.nz Reviewed-By: nsouch Notes: svn path=/head/; revision=48248
* GC unused prototypePeter Wemm1999-06-031-2/+1
| | | | Notes: svn path=/head/; revision=47718
* Simplify cdevsw registration.Poul-Henning Kamp1999-05-313-37/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-303-16/+66
| | | | | | | | | | | | | | | | 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
* Move the declaration of the interrupt type from the driver structureDoug Rabson1999-05-081-2/+1
| | | | | | | to the BUS_SETUP_INTR call. Notes: svn path=/head/; revision=46743
* GC unused pps_drvinit() declarationPeter Wemm1999-05-061-2/+1
| | | | Notes: svn path=/head/; revision=46589
* The base transfer speed for the parallel port bus is 93K/sec, not 3.3MB/sec.Kenneth D. Merry1999-05-061-2/+2
| | | | | | | Submitted by: Nick Hibma <hibma@skylink.it> Notes: svn path=/head/; revision=46586
* Take out calls to cam_sim_set_basexfer_speed(), the base transfer speed isKenneth D. Merry1999-05-061-2/+1
| | | | | | | | | now returned in the path inquiry CCB. Submitted by: Nick Hibma <hibma@skylink.it> Notes: svn path=/head/; revision=46585
* Add a number of interrelated CAM feature enhancements and bug fixes.Kenneth D. Merry1999-05-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTE: These changes will require recompilation of any userland applications, like cdrecord, xmcd, etc., that use the CAM passthrough interface. A make world is recommended. camcontrol.[c8]: - We now support two new commands, "tags" and "negotiate". - The tags commands allows users to view the number of tagged openings for a device as well as a number of other related parameters, and it allows users to set tagged openings for a device. - The negotiate command allows users to enable and disable disconnection and tagged queueing, set sync rates, offsets and bus width. Note that not all of those features are available for all controllers. Only the adv, ahc, and ncr drivers fully support all of the features at this point. Some cards do not allow the setting of sync rates, offsets and the like, and some of the drivers don't have any facilities to do so. Some drivers, like the adw driver, only support enabling or disabling sync negotiation, but do not support setting sync rates. - new description in the camcontrol man page of how to format a disk - cleanup of the camcontrol inquiry command - add support in the 'devlist' command for skipping unconfigured devices if -v was not specified on the command line. - make use of the new base_transfer_speed in the path inquiry CCB. - fix CCB bzero cases cam_xpt.c, cam_sim.[ch], cam_ccb.h: - new flags on many CCB function codes to designate whether they're non-immediate, use a user-supplied CCB, and can only be passed from userland programs via the xpt device. Use these flags in the transport layer and pass driver to categorize CCBs. - new flag in the transport layer device matching code for device nodes that indicates whether a device is unconfigured - bump the CAM version from 0x10 to 0x11 - Change the CAM ioctls to use the version as their group code, so we can force users to recompile code even when the CCB size doesn't change. - add + fill in a new value in the path inquiry CCB, base_transfer_speed. Remove a corresponding field from the cam_sim structure, and add code to every SIM to set this field to the proper value. - Fix the set transfer settings code in the transport layer. scsi_cd.c: - make some variables volatile instead of just casting them in various places - fix a race condition in the changer code - attach unless we get a "logical unit not supported" error. This should fix all of the cases where people have devices that return weird errors when they don't have media in the drive. scsi_da.c: - attach unless we get a "logical unit not supported" error scsi_pass.c: - for immediate CCBs, just malloc a CCB to send the user request in. This gets rid of the 'held' count problem in camcontrol tags. scsi_pass.h: - change the CAM ioctls to use the CAM version as their group code. adv driver: - Allow changing the sync rate and offset separately. adw driver - Allow changing the sync rate and offset separately. aha driver: - Don't return CAM_REQ_CMP for SET_TRAN_SETTINGS CCBs. ahc driver: - Allow setting offset and sync rate separately bt driver: - Don't return CAM_REQ_CMP for SET_TRAN_SETTINGS CCBs. NCR driver: - Fix the ultra/ultra 2 negotiation bug - allow setting both the sync rate and offset separately Other HBA drivers: - Put code in to set the base_transfer_speed field for XPT_GET_TRAN_SETTINGS CCBs. Reviewed by: gibbs, mjacob (isp), imp (aha) Notes: svn path=/head/; revision=46581
* s/static foo_devsw_installed = 0;/static int foo_devsw_installed;/.Dmitrij Tejblum1999-04-282-4/+4
| | | | | | | (Edited automatically) Notes: svn path=/head/; revision=46153
* Allow multiple opens.Poul-Henning Kamp1999-04-251-5/+10
| | | | Notes: svn path=/head/; revision=46053
* Staticize.Eivind Eklund1999-04-111-2/+2
| | | | Notes: svn path=/head/; revision=45575
* Make ppbus compile under egcs. I'm not sure about this casting-to-union-Peter Wemm1999-04-053-9/+14
| | | | | | | -containing-the-type stuff, but gcc seemed to do it implicitly.. Notes: svn path=/head/; revision=45342
* 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
* Move away from lpt.h data structure definition that only lpt.c relies on.Nicolas Souchu1999-02-143-43/+59
| | | | | | | Remove if_plip.c dependency to lpt.h. Notes: svn path=/head/; revision=43999
* Rename nlpt to lpt.Nicolas Souchu1999-02-144-136/+97
| | | | | | | | Remove from ppi.c the old depreciated module stuff. Print info when if_plip can't use interrupts. Notes: svn path=/head/; revision=43989
* 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