Skip site navigation (1)Skip section navigation (2)

CVS log for src/sys/dev/ppbus/ppbconf.c

[BACK] Up to [FreeBSD] / src / sys / dev / ppbus

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.34.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 31 15:31:34 2011 UTC (5 weeks, 5 days ago) by hselasky
Branches: RELENG_9
Diff to: previous 1.34.2.1: preferred, colored; branchpoint 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.2.1: +2 -8 lines
SVN rev 229118 on 2011-12-31 15:31:34Z by hselasky

MFC r227701, r227847 and r227849:
Move the device_delete_all_children() function from usb_util.c
to kern/subr_bus.c. Simplify this function so that it no longer
depends on malloc() to execute. Rename device_delete_all_children()
into device_delete_children(). Identify a few other places where
it makes sense to use device_delete_children().

Revision 1.36: download - view: text, markup, annotated - select for diffs
Tue Nov 22 21:56:55 2011 UTC (2 months, 2 weeks ago) by hselasky
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +1 -1 lines
SVN rev 227849 on 2011-11-22 21:56:55Z by hselasky

Rename device_delete_all_children() into device_delete_children().

Suggested by:	jhb @ and marius @
MFC after:	1 week

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sat Nov 19 10:11:50 2011 UTC (2 months, 3 weeks ago) by hselasky
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -8 lines
SVN rev 227701 on 2011-11-19 10:11:50Z by hselasky

Move the device_delete_all_children() function from usb_util.c
to kern/subr_bus.c. Simplify this function so that it no longer
depends on malloc() to execute. Identify a few other places where
it makes sense to use device_delete_all_children().

MFC after:	1 week

Revision 1.34.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.34.2.1: preferred, colored; next MAIN 1.34.2.2: preferred, colored
Changes since revision 1.34.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.34.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.34: preferred, colored
Changes since revision 1.34: +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.26.2.2.2.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.26.2.2: preferred, colored; next MAIN 1.26.4.1: preferred, colored
Changes since revision 1.26.2.2: +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.33.2.2.2.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.33.2.2: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.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.26.2.2: download - view: text, markup, annotated - select for diffs
Mon Sep 20 11:09:31 2010 UTC (16 months, 2 weeks ago) by avg
Branches: RELENG_7
CVS tags: RELENG_7_4_BP
Branch point for: RELENG_7_4
Diff to: previous 1.26.2.1: preferred, colored; branchpoint 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26.2.1: +1 -1 lines
SVN rev 212893 on 2010-09-20 11:09:31Z by avg

MFC r212413: bus_add_child: change type of order parameter to u_int

Revision 1.33.2.2: download - view: text, markup, annotated - select for diffs
Mon Sep 20 07:31:08 2010 UTC (16 months, 2 weeks ago) by avg
Branches: RELENG_8
CVS tags: RELENG_8_2_BP
Branch point for: RELENG_8_2
Diff to: previous 1.33.2.1: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.2.1: +1 -1 lines
SVN rev 212892 on 2010-09-20 07:31:08Z by avg

MFC r212413: bus_add_child: change type of order parameter to u_int

Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Sep 10 11:19:03 2010 UTC (17 months ago) by avg
Branches: MAIN
CVS tags: RELENG_9_BP
Branch point for: RELENG_9
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +1 -1 lines
SVN rev 212413 on 2010-09-10 11:19:03Z by avg

bus_add_child: change type of order parameter to u_int

This reflects actual type used to store and compare child device orders.
Change is mostly done via a Coccinelle (soon to be devel/coccinelle)
semantic patch.
Verified by LINT+modules kernel builds.

Followup to:	r212213
MFC after:	10 days

Revision 1.33.2.1.4.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.33.2.1: preferred, colored; next MAIN 1.33.2.2: preferred, colored
Changes since revision 1.33.2.1: +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.26.2.1.6.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.26.2.1: preferred, colored; next MAIN 1.26.2.2: preferred, colored
Changes since revision 1.26.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.33.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.33.2.1: preferred, colored; next MAIN 1.33.2.2: preferred, colored
Changes since revision 1.33.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.33.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_1_BP, RELENG_8_0_BP
Branch point for: RELENG_8_1, RELENG_8_0
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +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.26.2.1.4.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.26.2.1: preferred, colored; next MAIN 1.26.2.2: preferred, colored
Changes since revision 1.26.2.1: +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.33: download - view: text, markup, annotated - select for diffs
Mon Jan 26 14:12:12 2009 UTC (3 years ago) by jhb
Branches: MAIN
CVS tags: RELENG_8_BP
Branch point for: RELENG_8
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -0 lines
SVN rev 187714 on 2009-01-26 14:12:12Z by jhb

Add missing locking around setting the ppc interrupt handler IVAR.

Reported by:	    many

Revision 1.32: 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.31: preferred, colored
Changes since revision 1.31: +76 -44 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.26.2.1.2.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.26.2.1: preferred, colored; next MAIN 1.26.2.2: preferred, colored
Changes since revision 1.26.2.1: +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.31: 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.30: preferred, colored
Changes since revision 1.30: +31 -31 lines
SVN rev 185003 on 2008-11-16 17:42:02Z by jhb

Various whitespace and style fixes.

Revision 1.30: 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.29: preferred, colored
Changes since revision 1.29: +18 -22 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.23.10.1.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.23.10.1: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23.10.1: +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.29: 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.28: preferred, colored
Changes since revision 1.28: +2 -38 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.28: download - view: text, markup, annotated - select for diffs
Fri Aug 22 18:42:18 2008 UTC (3 years, 5 months ago) by jhb
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +1 -1 lines
SVN rev 182014 on 2008-08-22 18:42:18Z by jhb

Whitespace fix.

Revision 1.26.4.1: download - view: text, markup, annotated - select for diffs
Tue Jan 15 22:28:15 2008 UTC (4 years ago) by jhb
Branches: RELENG_7_0
CVS tags: RELENG_7_0_0_RELEASE
Diff to: previous 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26: +37 -0 lines
MFC: Use a dummy interrupt handler to work around lpt(4) interrupt
problems.

Approved by:	re (gnn)

Revision 1.26.2.1: download - view: text, markup, annotated - select for diffs
Tue Jan 15 22:26:38 2008 UTC (4 years ago) by jhb
Branches: RELENG_7
CVS tags: RELENG_7_3_BP, RELENG_7_2_BP, RELENG_7_1_BP
Branch point for: RELENG_7_3, RELENG_7_2, RELENG_7_1
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +37 -0 lines
MFC: Use a dummy interrupt handler to work around lpt(4) interrupt
problems.

Approved by:	re (gnn)

Revision 1.27: download - view: text, markup, annotated - select for diffs
Thu Jan 10 23:43:47 2008 UTC (4 years, 1 month ago) by jhb
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +37 -0 lines
Work around problems with the ppbus(4)'s interesting way of managing
interrupt handlers for child devices by adding a dummy handler that is
always present so that the underlying interrupt thread is always around
avoiding panics from stray interrupts.

MFC after:	3 days

Revision 1.23.10.1: 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.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +18 -0 lines
MFC: acpi_dock (docking station) and acpi_hpet (high-perf timer) support

Revision 1.26: download - view: text, markup, annotated - select for diffs
Tue Mar 6 11:44:11 2007 UTC (4 years, 11 months ago) by piso
Branches: MAIN
CVS tags: RELENG_7_BP, RELENG_7_0_BP
Branch point for: RELENG_7_0, RELENG_7
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +1 -1 lines
Remove a useless cast from void * to struct ppb_device *.

Revision 1.25: 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
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -2 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.24: download - view: text, markup, annotated - select for diffs
Sat Apr 15 12:31:33 2006 UTC (5 years, 9 months ago) by iwasaki
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +18 -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.23: 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_6_BP, RELENG_6_2_BP, RELENG_6_2_0_RELEASE, RELENG_6_2, RELENG_6_1_BP, RELENG_6_1_0_RELEASE, RELENG_6_1, RELENG_6_0_BP, RELENG_6_0_0_RELEASE, RELENG_6_0, RELENG_5_BP, RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5, RELENG_5_4_BP, RELENG_5_4_0_RELEASE, RELENG_5_4, RELENG_5_3_BP, RELENG_5_3_0_RELEASE, RELENG_5_3, RELENG_5_2_BP, RELENG_5_2_1_RELEASE, RELENG_5_2_0_RELEASE, RELENG_5_2, RELENG_5
Branch point for: RELENG_6
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -1 lines
Use __FBSDID().
Also some minor style cleanups.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Jun 12 07:01:27 2001 UTC (10 years, 8 months ago) by peter
Branches: MAIN
CVS tags: RELENG_5_1_BP, RELENG_5_1_0_RELEASE, RELENG_5_1, RELENG_5_0_BP, RELENG_5_0_0_RELEASE, RELENG_5_0, KSE_PRE_MILESTONE_2, KSE_MILESTONE_2
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -3 lines
-Wunused cleanup

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Apr 1 07:36:28 2001 UTC (10 years, 10 months ago) by alfred
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -12 lines
make code use strxxx() calls

Glanced at by: imp

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Dec 8 21:49:52 2000 UTC (11 years, 2 months ago) by dwmalone
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
Convert more malloc+bzero to malloc+M_ZERO.

Submitted by:	josh@zipperup.org
Submitted by:	Robert Drehmel <robd@gmx.net>

Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Dec 8 20:08:12 2000 UTC (11 years, 2 months ago) by phk
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2 lines
Staticize some malloc M_ instances.

Revision 1.17.2.1: 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
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.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +2 -2 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 5 14:10:25 2000 UTC (11 years, 9 months ago) by n_hibma
Branches: MAIN
CVS tags: PRE_SMPNG
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
Confusing comment.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Jan 23 14:41:04 2000 UTC (12 years ago) by peter
Branches: MAIN
CVS tags: RELENG_4_BP, RELENG_4_0_0_RELEASE
Branch point for: RELENG_4
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +34 -71 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.16: download - view: text, markup, annotated - select for diffs
Fri Jan 14 00:17:55 2000 UTC (12 years ago) by nsouch
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +249 -188 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.13.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 29 16:23:54 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_3
CVS tags: RELENG_3_5_0_RELEASE, RELENG_3_4_0_RELEASE, RELENG_3_3_0_RELEASE
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Aug 28 00:42:25 1999 UTC (12 years, 5 months ago) by peter
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Apr 11 02:55:52 1999 UTC (12 years, 10 months ago) by eivind
Branches: MAIN
CVS tags: PRE_VFS_BIO_NFS_PATCH, PRE_SMP_VMSHARE, PRE_NEWBUS, POST_VFS_BIO_NFS_PATCH, POST_SMP_VMSHARE, POST_NEWBUS
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
Staticize.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Jan 14 06:22:02 1999 UTC (13 years ago) by jdp
Branches: MAIN
CVS tags: RELENG_3_BP, RELENG_3_2_PAO_BP, RELENG_3_2_PAO, RELENG_3_2_0_RELEASE, RELENG_3_1_0_RELEASE
Branch point for: RELENG_3
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
Replace includes of <sys/kernel.h> with includes of
<sys/linker_set.h> in those files that use only the linker set
definitions.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Jan 11 21:22:41 1999 UTC (13 years, 1 month ago) by nsouch
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +30 -24 lines
Fix missing \n in boot printfs. Add more mode detection if bootverbose.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Jan 10 16:41:14 1999 UTC (13 years, 1 month ago) by nsouch
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -4 lines
Fix broken low level ppb_rxxx() return type: char becomes u_char.

Submitted by: Bruce Evans <bde@zeta.org.au>

Some ppb bootup printfs simplified.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Jan 10 12:04:55 1999 UTC (13 years, 1 month ago) by nsouch
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +147 -62 lines
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 nlpt.c may act as examples.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Dec 7 21:58:16 1998 UTC (13 years, 2 months ago) by archie
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -2 lines
The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static
and local variables, goto labels, and functions declared but not defined.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Sep 20 14:41:54 1998 UTC (13 years, 4 months ago) by nsouch
Branches: MAIN
CVS tags: RELENG_3_0_0_RELEASE
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -1 lines
- port of vpo code to CAM

- 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

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Sep 13 18:26:26 1998 UTC (13 years, 5 months ago) by nsouch
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +16 -9 lines
ppbus enhanced to support ZIP+ : 1284 code added, microseq improved +
some bugs corrected in vpoio.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Aug 3 19:14:31 1998 UTC (13 years, 6 months ago) by msmith
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +66 -26 lines
Major ppbus updates from the author.

 - 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>

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Feb 9 06:07:58 1998 UTC (14 years ago) by eivind
Branches: MAIN
CVS tags: PRE_SOFTUPDATE, PRE_NOBDEV, PRE_DEVFS_SLICE, POST_SOFTUPDATE, POST_DEVFS_SLICE
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
Staticize.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Sep 1 00:51:46 1997 UTC (14 years, 5 months ago) by bde
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +1 -10 lines
Removed unused #includes.  The !KERNEL case may be more broken than before.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Aug 28 10:15:14 1997 UTC (14 years, 5 months ago) by msmith
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -5 lines
Remove bogus i386/* includes.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Aug 16 14:05:35 1997 UTC (14 years, 5 months ago) by msmith
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +230 -151 lines
Sync with ppbus-970815 from the author :
 - interrupt-driven printing now works (nlpt)
 - Rearrangement of bus-related functions into ppb_base/ppbconf
 - Addition of ieee1284 interface functions, preliminary parallel-port
   PnP support

Submitted by:	Nicolas Souchu <Nicolas.Souchu@prism.uvsq.fr>

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Aug 14 13:57:41 1997 UTC (14 years, 5 months ago) by msmith
Branches: MAIN
New directory and drivers for Parallel Port Bus devices.
Submitted by:	Nicolas Souchu <Nicolas.Souchu@prism.uvsq.fr>

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options