CVS log for src/sys/dev/ppbus/lpt.c
Up to [FreeBSD] / src / sys / dev / ppbus
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.52.2.2: download - view: text, markup, annotated - select for diffs
Tue Jan 31 01:51:30 2012 UTC (9 days, 20 hours ago) by attilio
Branches: RELENG_9
Diff to: previous 1.52.2.1: preferred, colored; branchpoint 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52.2.1: +2 -3 lines
SVN rev 230800 on 2012-01-31 01:51:30Z by attilio MFC r227814: - Use ppb_assert_locked() rather than using explicit mtx_assert call - Make ppbus code agnostic in regard of INVARIANTS option
Revision 1.53: download - view: text, markup, annotated - select for diffs
Tue Nov 22 11:35:24 2011 UTC (2 months, 2 weeks ago) by attilio
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +2 -3 lines
SVN rev 227814 on 2011-11-22 11:35:24Z by attilio - Use ppb_assert_locked() rather than using explicit mtx_assert call - Make ppbus code agnostic in regard of INVARIANTS option MFC after: 2 weeks
Revision 1.52.2.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 11 04:20:22 2011 UTC (2 months, 4 weeks ago) by kensmith
Branches: RELENG_9_0
CVS tags: RELENG_9_0_0_RELEASE
Diff to: previous 1.52.2.1: preferred, colored; next MAIN 1.52.2.2: preferred, colored
Changes since revision 1.52.2.1: +0 -0 lines
SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release cycle. Approved by: re (implicit)
Revision 1.49.2.3: download - view: text, markup, annotated - select for diffs
Mon Oct 10 17:53:06 2011 UTC (4 months ago) by brueffer
Branches: RELENG_8
Diff to: previous 1.49.2.2: preferred, colored; branchpoint 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49.2.2: +5 -2 lines
SVN rev 226225 on 2011-10-10 17:53:06Z by brueffer MFC: r198358 Check pointer for NULL before dereferencing it, not after.
Revision 1.52.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 23 00:51:37 2011 UTC (4 months, 2 weeks ago) by kensmith
Branches: RELENG_9
CVS tags: RELENG_9_0_BP
Branch point for: RELENG_9_0
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +0 -0 lines
SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith Copy head to stable/9 as part of 9.0-RELEASE release cycle. Approved by: re (implicit)
Revision 1.40.2.1.4.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:10:29 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_7_4
CVS tags: RELENG_7_4_0_RELEASE
Diff to: previous 1.40.2.1: preferred, colored; next MAIN 1.40.6.1: preferred, colored
Changes since revision 1.40.2.1: +0 -0 lines
SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release. Approved by: re (implicit)
Revision 1.49.2.2.4.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:09:25 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_8_2
CVS tags: RELENG_8_2_0_RELEASE
Diff to: previous 1.49.2.2: preferred, colored; next MAIN 1.49.2.3: preferred, colored
Changes since revision 1.49.2.2: +0 -0 lines
SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release. Approved by: re (implicit)
Revision 1.49.2.2.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 02:09:06 2010 UTC (19 months, 3 weeks ago) by kensmith
Branches: RELENG_8_1
CVS tags: RELENG_8_1_0_RELEASE
Diff to: previous 1.49.2.2: preferred, colored; next MAIN 1.49.2.3: preferred, colored
Changes since revision 1.49.2.2: +0 -0 lines
SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith Copy stable/8 to releng/8.1 in preparation for 8.1-RC1. Approved by: re (implicit)
Revision 1.40.2.1.2.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (23 months, 4 weeks ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.40.2.1: preferred, colored; next MAIN 1.40.6.1: preferred, colored
Changes since revision 1.40.2.1: +0 -0 lines
SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process. Approved by: re (implicit)
Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Wed Nov 4 16:59:21 2009 UTC (2 years, 3 months ago) by jhb
Branches: RELENG_7
CVS tags: RELENG_7_4_BP, RELENG_7_3_BP
Branch point for: RELENG_7_4, RELENG_7_3
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +1 -1 lines
SVN rev 198908 on 2009-11-04 16:59:21Z by jhb MFC 197772: When the timeout backoff hits the maximum value, leave it capped at the maximum value rather than setting it to the result of a boolean expression that is always true.
Revision 1.49.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 4 16:58:26 2009 UTC (2 years, 3 months ago) by jhb
Branches: RELENG_8
CVS tags: RELENG_8_2_BP, RELENG_8_1_BP
Branch point for: RELENG_8_2, RELENG_8_1
Diff to: previous 1.49.2.1: preferred, colored; branchpoint 1.49: preferred, colored
Changes since revision 1.49.2.1: +1 -1 lines
SVN rev 198907 on 2009-11-04 16:58:26Z by jhb MFC 197772: When the timeout backoff hits the maximum value, leave it capped at the maximum value rather than setting it to the result of a boolean expression that is always true.
Revision 1.49.2.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 25 01:10:29 2009 UTC (2 years, 3 months ago) by kensmith
Branches: RELENG_8_0
CVS tags: RELENG_8_0_0_RELEASE
Diff to: previous 1.49.2.1: preferred, colored; next MAIN 1.49.2.2: preferred, colored
Changes since revision 1.49.2.1: +0 -0 lines
SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure. Approved by: re (implicit)
Revision 1.52: download - view: text, markup, annotated - select for diffs
Thu Oct 22 06:51:29 2009 UTC (2 years, 3 months ago) by brueffer
Branches: MAIN
CVS tags: RELENG_9_BP
Branch point for: RELENG_9
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +5 -2 lines
SVN rev 198358 on 2009-10-22 06:51:29Z by brueffer Check pointer for NULL before dereferencing it, not after. PR: 138387, 138388 Submitted by: Patroklos Argyroudis <argp@census-labs.com> MFC after: 1 week
Revision 1.51: download - view: text, markup, annotated - select for diffs
Tue Oct 13 12:23:28 2009 UTC (2 years, 3 months ago) by jhb
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +1 -1 lines
SVN rev 198028 on 2009-10-13 12:23:28Z by jhb Correct a copy/paste bug in a comment. lptclose() checks once a second to see if the ppc hardware has gone idle rather than four times a second.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Mon Oct 5 14:13:16 2009 UTC (2 years, 4 months ago) by jhb
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +1 -1 lines
SVN rev 197772 on 2009-10-05 14:13:16Z by jhb When the timeout backoff hits the maximum value, leave it capped at the maximum value rather than setting it to the result of a boolean expression that is always true. Submitted by: Joseph Kong MFC after: 1 month
Revision 1.49.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 3 08:13:06 2009 UTC (2 years, 6 months ago) by kensmith
Branches: RELENG_8
CVS tags: RELENG_8_0_BP
Branch point for: RELENG_8_0
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +0 -0 lines
SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith Copy head to stable/8 as part of 8.0 Release cycle. Approved by: re (Implicit)
Revision 1.40.8.1: download - view: text, markup, annotated - select for diffs
Wed Apr 15 03:14:26 2009 UTC (2 years, 9 months ago) by kensmith
Branches: RELENG_7_2
CVS tags: RELENG_7_2_0_RELEASE
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +0 -0 lines
SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE. Approved by: re (implicit)
Revision 1.49: download - view: text, markup, annotated - select for diffs
Wed Feb 11 14:25:09 2009 UTC (2 years, 11 months ago) by jhb
Branches: MAIN
CVS tags: RELENG_8_BP
Branch point for: RELENG_8
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +8 -11 lines
SVN rev 188484 on 2009-02-11 14:25:09Z by jhb Fix lptopen() and lptclose() to not trash the state of the HAVEBUS flag in 'sc_state'. This allows the lpt_release_ppbus() calls in those two routines to actually release the ppbus and thus fixes the hangs noticed with the lpt(4) driver since the recent ppbus changes. The old lpt(4) driver didn't actually check the HAVEBUS flag in lpt_release_ppbus() which is why these bugs weren't noticed before.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Mon Jan 26 20:58:05 2009 UTC (3 years ago) by jhb
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +1 -1 lines
SVN rev 187740 on 2009-01-26 20:58:05Z by jhb Don't unlock the parent ppc lock until after releasing the ppbus. Submitted by: csjp
Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Jan 22 15:35:54 2009 UTC (3 years ago) by jhb
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +2 -0 lines
SVN rev 187591 on 2009-01-22 15:35:54Z by jhb Fix a compile bogon. 'ppbus' is used by two different sets of debug code in lptout(). Reported by: several
Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed Jan 21 23:10:06 2009 UTC (3 years ago) by jhb
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +157 -130 lines
SVN rev 187576 on 2009-01-21 23:10:06Z by jhb Add locking to ppc and ppbus and mark the whole lot MPSAFE: - To avoid having a bunch of locks that end up always getting acquired as a group, give each ppc(4) device a mutex which it shares with all the child devices including ppbus(4), lpt(4), plip(4), etc. This mutex is then used for all the locking. - Rework the interrupt handling stuff yet again. Now ppbus drivers setup their interrupt handler during attach and tear it down during detach like most other drivers. ppbus(4) only invokes the interrupt handler of the device that currently owns the bus (if any) when an interrupt occurs, however. Also, interrupt handlers in general now accept their softc pointers as their argument rather than the device_t. Another feature of the ppbus interrupt handlers is that they are called with the parent ppc device's lock already held. This minimizes the number of lock operations during an interrupt. - Mark plip(4), lpt(4), pcfclock(4), ppi(4), vpo(4) MPSAFE. - lpbb(4) uses the ppc lock instead of Giant. - Other plip(4) changes: - Add a mutex to protect the global tables in plip(4) and free them on module unload. - Add a detach routine. - Split out the init/stop code from the ioctl routine into separate functions. - Other lpt(4) changes: - Use device_printf(). - Use a dedicated callout for the lptout timer. - Allocate the I/O buffers at attach and detach rather than during open and close as this simplifies the locking at the cost of 1024+32 bytes when the driver is attached. - Other ppi(4) changes: - Use an sx lock to serialize open and close. - Remove unused HADBUS flag. - Add a detach routine. - Use a malloc'd buffer for each read and write to avoid races with concurrent read/write. - Other pps(4) changes: - Use a callout rather than a callout handle with timeout(). - Conform to the new ppbus requirements (regular mutex, non-filter interrupt handler). pps(4) is probably going to have to become a standalone driver that doesn't use ppbus(4) to satisfy it's requirements for low latency as a result. - Use an sx lock to serialize open and close. - Other vpo(4) changes: - Use the parent ppc device's lock to create the CAM sim instead of Giant. - Other ppc(4) changes: - Fix ppc_isa's detach method to detach instead of calling attach. Tested by: no one :-(
Revision 1.40.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 02:59:29 2008 UTC (3 years, 2 months ago) by kensmith
Branches: RELENG_7_1
CVS tags: RELENG_7_1_0_RELEASE
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +0 -0 lines
SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith Create releng/7.1 in preparation for moving into RC phase of 7.1 release cycle. Approved by: re (implicit)
Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Nov 16 17:42:02 2008 UTC (3 years, 2 months ago) by jhb
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +38 -41 lines
SVN rev 185003 on 2008-11-16 17:42:02Z by jhb Various whitespace and style fixes.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Oct 22 15:00:22 2008 UTC (3 years, 3 months ago) by jhb
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -2 lines
SVN rev 184164 on 2008-10-22 15:00:22Z by jhb Fix build breakage. Pointy hat: jhb
Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Oct 21 18:30:10 2008 UTC (3 years, 3 months ago) by jhb
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +28 -29 lines
SVN rev 184130 on 2008-10-21 18:30:10Z by jhb Several cleanups to remove the need for explicit unit numbers and a few other fixes: - Add pointers back to device_t objects in softc structures instead of storing the unit and using devclass_get_device(). - Add 'lpbb', 'pcf', 'pps', and 'vpo' child devices to every 'ppbus' device instead of just the first one. - Store softc pointers in si_drv1 of character devices instead of pulling the unit number from the minor number and using devclass_get_softc() and devclass_get_device(). - Store the LP_BYPASS flag in si_drv2 instead of encoding it in the minor number. - Destroy character devices for lpt(4) when detaching the device. - Use bus_print_child_footer() instead of duplicating it in ppbus_print_child() and fix ppbus_print_child()'s return value. - Remove unused AVM ivar from ppbus. - Don't store the 'mode' ivar in the ppbus ivars since we always fetch it from the parent anyway. - Try to detach all the child devices before deleting them in ppbus_detach(). - Use pause() instead of a tsleep() on a dummy address when polling the ppbus. - Use if_printf() and device_printf() instead of explicit names with unit numbers. Silence on: current@
Revision 1.36.2.2.4.1: download - view: text, markup, annotated - select for diffs
Thu Oct 2 02:57:24 2008 UTC (3 years, 4 months ago) by kensmith
Branches: RELENG_6_4
CVS tags: RELENG_6_4_0_RELEASE
Diff to: previous 1.36.2.2: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.2.2: +0 -0 lines
SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith Create releng/6.4 from stable/6 in preparation for 6.4-RC1. Approved by: re (implicit)
Revision 1.42: download - view: text, markup, annotated - select for diffs
Sat Sep 27 08:51:18 2008 UTC (3 years, 4 months ago) by ed
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +6 -6 lines
SVN rev 183397 on 2008-09-27 08:51:18Z by ed Replace all calls to minor() with dev2unit(). After I removed all the unit2minor()/minor2unit() calls from the kernel yesterday, I realised calling minor() everywhere is quite confusing. Character devices now only have the ability to store a unit number, not a minor number. Remove the confusion by using dev2unit() everywhere. This commit could also be considered as a bug fix. A lot of drivers call minor(), while they should actually be calling dev2unit(). In -CURRENT this isn't a problem, but it turns out we never had any problem reports related to that issue in the past. I suspect not many people connect more than 256 pieces of the same hardware. Reviewed by: kib
Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Sep 15 22:26:32 2008 UTC (3 years, 4 months ago) by jhb
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +5 -11 lines
SVN rev 183053 on 2008-09-15 22:26:32Z by jhb Rework the handling of interrupt handlers for children of ppc and ppbus: - Retire IVARs for passing IRQs around. Instead, ppbus and ppc now allow child devices to access the interrupt by via a rid 0 IRQ resource using bus_alloc_resource_any(). - ppc creates its own interrupt event to manage the interrupt handlers of child devices. ppc does not allow child devices to use filters. It could allow this if needed, but none of the current drivers use them and it adds a good bit of complication. It uses intr_event_execute_handlers() to fire the child device interrupt handlers from its threaded interrupt handler. - Remove the ppbus_dummy_intr() hack. Now the ppc device always has an interrupt handler registered and we no longer bounce all the way up to nexus to manage adding/removing ppbus child interrupt handlers. Instead, the child handlers are added and removed to the private interrupt event in the ppc device.
Revision 1.36.2.2: download - view: text, markup, annotated - select for diffs
Fri Mar 23 19:45:53 2007 UTC (4 years, 10 months ago) by njl
Branches: RELENG_6
CVS tags: RELENG_6_4_BP, RELENG_6_3_BP, RELENG_6_3_0_RELEASE, RELENG_6_3
Branch point for: RELENG_6_4
Diff to: previous 1.36.2.1: preferred, colored; branchpoint 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.2.1: +16 -0 lines
MFC: acpi_dock (docking station) and acpi_hpet (high-perf timer) support
Revision 1.40: download - view: text, markup, annotated - select for diffs
Fri Feb 23 12:18:49 2007 UTC (4 years, 11 months ago) by piso
Branches: MAIN
CVS tags: RELENG_7_BP, RELENG_7_2_BP, RELENG_7_1_BP, RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0
Branch point for: RELENG_7_2, RELENG_7_1, RELENG_7
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +1 -1 lines
o break newbus api: add a new argument of type driver_filter_t to bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Reviewed by: many Approved by: re@
Revision 1.36.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 19 16:31:12 2006 UTC (5 years, 6 months ago) by kib
Branches: RELENG_6
CVS tags: RELENG_6_2_BP, RELENG_6_2_0_RELEASE, RELENG_6_2
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +1 -0 lines
Enable build of ppc(4) module on i386 and amd64 architectures. Add proper module interdependencies. Reviewed by: marcel Approved by: pjd (mentor)
Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat Apr 15 12:31:32 2006 UTC (5 years, 9 months ago) by iwasaki
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +16 -0 lines
Import ACPI Dock Station support. Note that this is still very young. Additional detach implementaions (or maybe improvement) for other deivce drivers is required. Reviewed by: njl, imp MFC after: 1 week
Revision 1.38: download - view: text, markup, annotated - select for diffs
Wed Feb 22 18:16:25 2006 UTC (5 years, 11 months ago) by jhb
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -2 lines
- Use bus_setup_intr() and bus_teardown_intr() to register device driver interrupt handlers rather than BUS_SETUP_INTR() and BUS_TEARDOWN_INTR(). Uses of the BUS_*() versions in the implementation of foo_intr methods in bus drivers were not changed. Mostly this just means that some drivers might start printing diagnostic messages like [FAST] when appropriate as well as honoring mpsafenet=0. - Fix two more of the ppbus drivers' identify routines to function correctly in the mythical case of a machine with more than one ppbus.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Dec 21 10:54:46 2005 UTC (6 years, 1 month ago) by ru
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +1 -0 lines
Add missing MODULE_DEPEND() so that ppbus.ko and these .ko's can be loaded dynamically.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Mar 17 09:32:37 2005 UTC (6 years, 10 months ago) by phk
Branches: MAIN
CVS tags: RELENG_6_BP, RELENG_6_1_BP, RELENG_6_1_0_RELEASE, RELENG_6_1, RELENG_6_0_BP, RELENG_6_0_0_RELEASE, RELENG_6_0
Branch point for: RELENG_6
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +0 -6 lines
Remove unused variable. Detected by: Coverity (ID#704)
Revision 1.34.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 30 00:59:58 2005 UTC (7 years ago) by imp
Branches: RELENG_5
CVS tags: RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5, RELENG_5_4_BP, RELENG_5_4_0_RELEASE, RELENG_5_4
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +1 -1 lines
MFC: /*- and my license changes for sys/[a-d]*
Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Jan 6 01:43:06 2005 UTC (7 years, 1 month ago) by imp
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +1 -1 lines
Start each of the license/copyright comments with /*-, minor shuffle of lines
Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Jul 9 16:56:46 2004 UTC (7 years, 7 months ago) by cognet
Branches: MAIN
CVS tags: RELENG_5_BP, RELENG_5_3_BP, RELENG_5_3_0_RELEASE, RELENG_5_3
Branch point for: RELENG_5
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +0 -1 lines
Do not bzero() the softc, as newbus does it for us.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Wed Jun 16 09:46:53 2004 UTC (7 years, 7 months ago) by phk
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +5 -5 lines
Do the dreaded s/dev_t/struct cdev */ Bump __FreeBSD_version accordingly.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Mar 18 21:10:11 2004 UTC (7 years, 10 months ago) by guido
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +5 -1 lines
Prevent the strange situation that after each load/unload of a ppbus device, the device is probed multiple times (so each device is detected N times after unloading/loading the module N-1 times). The real fix is (quote Doug and Warner): > : In an ideal world, there should be some kind of BUS_UNIDENTIFY method > : which a driver could use to delete the devices it created in > : BUS_IDENTIFY. > > Or the bus would have a driver deleted routine that got called and it > would remove all instances of the devclass attached to it. Reviewed by: Doug Rabson & Warner Losh
Revision 1.31: download - view: text, markup, annotated - select for diffs
Sat Feb 21 21:10:45 2004 UTC (7 years, 11 months ago) by phk
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -0 lines
Device megapatch 4/6: Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Feb 21 19:42:52 2004 UTC (7 years, 11 months ago) by phk
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +0 -2 lines
Device megapatch 1/6: Free approx 86 major numbers with a mostly automatically generated patch. A number of strategic drivers have been left behind by caution, and a few because they still (ab)use their major number.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Aug 24 17:54:16 2003 UTC (8 years, 5 months ago) by obrien
Branches: MAIN
CVS tags: RELENG_5_2_BP, RELENG_5_2_1_RELEASE, RELENG_5_2_0_RELEASE, RELENG_5_2
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -1 lines
Use __FBSDID(). Also some minor style cleanups.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Mar 3 12:15:44 2003 UTC (8 years, 11 months ago) by phk
Branches: MAIN
CVS tags: RELENG_5_1_BP, RELENG_5_1_0_RELEASE, RELENG_5_1
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +7 -13 lines
Gigacommit to improve device-driver source compatibility between 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)
Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Mar 2 16:54:34 2003 UTC (8 years, 11 months ago) by des
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +6 -6 lines
More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).
Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Feb 19 05:47:09 2003 UTC (8 years, 11 months ago) by imp
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -2 lines
Back out M_* changes, per decision of the TRB. Approved by: trb
Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Jan 21 08:55:38 2003 UTC (9 years ago) by alfred
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -2 lines
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Nov 7 17:20:58 2002 UTC (9 years, 3 months ago) by jhb
Branches: MAIN
CVS tags: RELENG_5_0_BP, RELENG_5_0_0_RELEASE, RELENG_5_0
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2 lines
- Make 'irq' intptr_t instead of uintptr_t so it handles a value of -1 properly. - Add a cast to quiet a printf warning.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Apr 7 22:06:20 2002 UTC (9 years, 10 months ago) by ticso
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2 lines
This makes ppbus childs like lpt and ppi succesfully connect to more than just the first ppbus. The child drivers always tried to attach unit 0. Reviewed by: gallatin Approved by: gallatin
Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Sep 12 08:37:09 2001 UTC (10 years, 5 months ago) by julian
Branches: MAIN
CVS tags: KSE_MILESTONE_2
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -4 lines
KSE Milestone 2 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
Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Mar 26 12:40:31 2001 UTC (10 years, 10 months ago) by phk
Branches: MAIN
CVS tags: KSE_PRE_MILESTONE_2
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +1 -2 lines
Send the remains (such as I have located) of "block major numbers" to the bit-bucket.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Dec 7 22:33:12 2000 UTC (11 years, 2 months ago) by phk
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -7 lines
Don't use a private malloc(9) type for something this M_DEVBUFish. Noticed long time ago by: bde
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Oct 15 14:18:25 2000 UTC (11 years, 3 months ago) by phk
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +1 -2 lines
Remove unneeded #include <machine/clock.h>
Revision 1.15.2.3: download - view: text, markup, annotated - select for diffs
Fri Jul 7 00:30:40 2000 UTC (11 years, 7 months ago) by obrien
Branches: RELENG_4
CVS tags: RELENG_4_9_BP, RELENG_4_9_0_RELEASE, RELENG_4_9, RELENG_4_8_BP, RELENG_4_8_0_RELEASE, RELENG_4_8, RELENG_4_7_BP, RELENG_4_7_0_RELEASE, RELENG_4_7, RELENG_4_6_BP, RELENG_4_6_2_RELEASE, RELENG_4_6_1_RELEASE, RELENG_4_6_0_RELEASE, RELENG_4_6, RELENG_4_5_BP, RELENG_4_5_0_RELEASE, RELENG_4_5, RELENG_4_4_BP, RELENG_4_4_0_RELEASE, RELENG_4_4, RELENG_4_3_BP, RELENG_4_3_0_RELEASE, RELENG_4_3, RELENG_4_2_0_RELEASE, RELENG_4_1_1_RELEASE, RELENG_4_1_0_RELEASE, RELENG_4_11_BP, RELENG_4_11_0_RELEASE, RELENG_4_11, RELENG_4_10_BP, RELENG_4_10_0_RELEASE, RELENG_4_10
Diff to: previous 1.15.2.2: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.2: +2 -3 lines
MFC: Use MI lptio.h, rather than MD lpt.h.
Revision 1.15.2.2: download - view: text, markup, annotated - select for diffs
Wed May 24 00:20:57 2000 UTC (11 years, 8 months ago) by n_hibma
Branches: RELENG_4
Diff to: previous 1.15.2.1: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.2.1: +13 -11 lines
MFC: - use malloc instead of buffers (phk). - put more code between ifdefs. - remove superfluous includes.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri May 19 18:23:48 2000 UTC (11 years, 8 months ago) by obrien
Branches: MAIN
CVS tags: PRE_SMPNG
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -3 lines
Rather than use a MD lpt.h, we now use the MI lptio.h.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri May 5 07:50:53 2000 UTC (11 years, 9 months ago) by phk
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +13 -11 lines
Don't use getebuf() unless you really need a struct buf. Malloc will do fine in this case.
Revision 1.2.2.3: download - view: text, markup, annotated - select for diffs
Wed Mar 15 03:28:53 2000 UTC (11 years, 10 months ago) by green
Branches: RELENG_3
CVS tags: RELENG_3_5_0_RELEASE
Diff to: previous 1.2.2.2: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.2: +6 -1 lines
MFC: rev.1.16, crash on read() of lpctlX fix
Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Wed Mar 15 03:27:23 2000 UTC (11 years, 10 months ago) by green
Branches: RELENG_4
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +6 -1 lines
MFC: rev.1.16, crash on read() of lpctlX fix
Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Mar 15 03:23:04 2000 UTC (11 years, 10 months ago) by green
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +6 -1 lines
I _HATE_ crashes. The lptread() call needs to check LP_BYPASS, because if one tries to use read() on an LP_BYPASS'd dev_t, the softc will be initialized mainly with NULLs, so...
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Feb 13 03:03:31 2000 UTC (11 years, 11 months ago) by peter
Branches: MAIN
CVS tags: RELENG_4_BP, RELENG_4_0_0_RELEASE
Branch point for: RELENG_4
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -2 lines
Fix two warnings.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Feb 8 21:46:27 2000 UTC (12 years ago) by nsouch
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3 lines
Fix system hang when printer locks on missing paper (also called the "printer fiasco") Approved by: jkh
Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Jan 25 22:23:47 2000 UTC (12 years ago) by dfr
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -3 lines
Make this lot build on alpha.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Jan 23 14:41:04 2000 UTC (12 years ago) by peter
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +22 -29 lines
Some newbus-inspired tidy-ups. Use device_identify() rather than scanning 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.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Jan 14 00:17:52 2000 UTC (12 years ago) by nsouch
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +198 -161 lines
Port of ppbus standalone framework to the newbus system.
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).
Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Dec 29 04:35:43 1999 UTC (12 years, 1 month ago) by peter
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -5 lines
Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 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.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Sep 25 18:23:53 1999 UTC (12 years, 4 months ago) by phk
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -6 lines
Remove five now unused fields from struct cdevsw. They should never 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
Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Sun Aug 29 16:23:49 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_3
CVS tags: RELENG_3_4_0_RELEASE, RELENG_3_3_0_RELEASE
Diff to: previous 1.2.2.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.2.1: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Aug 28 00:42:23 1999 UTC (12 years, 5 months ago) by peter
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Aug 23 20:58:31 1999 UTC (12 years, 5 months ago) by phk
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +5 -18 lines
Convert DEVFS hooks in (most) drivers to make_dev().
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().
Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Jun 3 22:03:35 1999 UTC (12 years, 8 months ago) by peter
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +1 -2 lines
GC unused prototype
Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon May 31 11:24:56 1999 UTC (12 years, 8 months ago) by phk
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -17 lines
Simplify cdevsw registration.
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.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun May 30 16:51:34 1999 UTC (12 years, 8 months ago) by phk
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +22 -5 lines
This commit should be a extensive NO-OP:
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.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Apr 28 10:51:35 1999 UTC (12 years, 9 months ago) by dt
Branches: MAIN
CVS tags: PRE_VFS_BIO_NFS_PATCH, POST_VFS_BIO_NFS_PATCH
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
s/static foo_devsw_installed = 0;/static int foo_devsw_installed;/. (Edited automatically)
Revision 1.2.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 24 02:20:22 1999 UTC (12 years, 9 months ago) by obrien
Branches: RELENG_3
CVS tags: RELENG_3_2_PAO_BP, RELENG_3_2_PAO, RELENG_3_2_0_RELEASE
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -1 lines
Bring lpt.{c,h} from -CURRENT. These files are esentually the same as the
previous nlpt.{c,h}. MAJOR history was lost when nlpt.{c,h} -> lpt.{c,h}
in -CURRENT as these files weren't repository copied. So for the record:
Major ppbus commit with:
+ 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 lpt.c may act as examples.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Feb 14 16:19:16 1999 UTC (12 years, 11 months ago) by nsouch
Branches: MAIN
CVS tags: PRE_SMP_VMSHARE, PRE_NEWBUS, POST_SMP_VMSHARE, POST_NEWBUS
Branch point for: RELENG_3
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +35 -1 lines
Move away from lpt.h data structure definition that only lpt.c relies on. Remove if_plip.c dependency to lpt.h.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Feb 14 11:59:59 1999 UTC (12 years, 11 months ago) by nsouch
Branches: MAIN
Rename nlpt to lpt. Remove from ppi.c the old depreciated module stuff. Print info when if_plip can't use interrupts.
