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

CVS log for src/sys/dev/ppc/ppc.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.64.4.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.64.4.1: preferred, colored; branchpoint 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64.4.1: +1 -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.66: 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.65: preferred, colored
Changes since revision 1.65: +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.65: 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.64: preferred, colored
Changes since revision 1.64: +1 -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.64.4.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.64.4.1: preferred, colored; next MAIN 1.64.4.2: preferred, colored
Changes since revision 1.64.4.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.64.4.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.64: preferred, colored
Changes since revision 1.64: +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.57.12.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.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +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.64.2.1.6.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.64.2.1: preferred, colored; next MAIN 1.64.4.1: preferred, colored
Changes since revision 1.64.2.1: +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.64.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.64.2.1: preferred, colored; next MAIN 1.64.4.1: preferred, colored
Changes since revision 1.64.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.57.10.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.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +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.64.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.64.2.1: preferred, colored; next MAIN 1.64.4.1: preferred, colored
Changes since revision 1.64.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.64.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_2_BP, RELENG_8_1_BP, RELENG_8_0_BP
Branch point for: RELENG_8_2, RELENG_8_1, RELENG_8_0
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +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.57.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.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +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.64: download - view: text, markup, annotated - select for diffs
Thu Feb 5 19:31:55 2009 UTC (3 years ago) by imp
Branches: MAIN
CVS tags: RELENG_9_BP, RELENG_8_BP
Branch point for: RELENG_9, RELENG_8
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +7 -7 lines
SVN rev 188173 on 2009-02-05 19:31:55Z by imp

reset_epp and ecp_sync both return int.

Revision 1.63: 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.62: preferred, colored
Changes since revision 1.62: +58 -64 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.57.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.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +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.62: 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.61: preferred, colored
Changes since revision 1.61: +61 -61 lines
SVN rev 185003 on 2008-11-16 17:42:02Z by jhb

Various whitespace and style fixes.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Wed Oct 22 19:39:16 2008 UTC (3 years, 3 months ago) by jhb
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +13 -10 lines
SVN rev 184176 on 2008-10-22 19:39:16Z by jhb

Fix build with PPC_PROBE_CHIPSET enabled.

Revision 1.60: 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.59: preferred, colored
Changes since revision 1.59: +15 -24 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.45.2.3.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.45.2.3: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.2.3: +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.59: 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.58: preferred, colored
Changes since revision 1.58: +102 -58 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.58: download - view: text, markup, annotated - select for diffs
Fri Aug 22 18:43:19 2008 UTC (3 years, 5 months ago) by jhb
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +8 -11 lines
SVN rev 182016 on 2008-08-22 18:43:19Z by jhb

Use bus_foo() rather than bus_space_foo() and remove bus handle and tag
from softc.

Revision 1.45.2.3: download - view: text, markup, annotated - select for diffs
Sat May 12 06:10:11 2007 UTC (4 years, 9 months ago) by nyan
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.45.2.2: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.2.2: +0 -8 lines
MFC: Don't call bus_deactivate_resource() explicitly before calling
     bus_release_resource().

Revision 1.45.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
Diff to: previous 1.45.2.1: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.1: +42 -0 lines
MFC: acpi_dock (docking station) and acpi_hpet (high-perf timer) support

Revision 1.57: download - view: text, markup, annotated - select for diffs
Wed Mar 21 03:38:36 2007 UTC (4 years, 10 months ago) by nyan
Branches: MAIN
CVS tags: RELENG_7_BP, RELENG_7_4_BP, RELENG_7_3_BP, RELENG_7_2_BP, RELENG_7_1_BP, RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0, RELENG_7
Branch point for: RELENG_7_4, RELENG_7_3, RELENG_7_2, RELENG_7_1
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +0 -8 lines
Don't call bus_deactivate_resource() explicitly before calling
bus_release_resource().  This is needed for pc98 by upcoming nexus related
change.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Tue Mar 6 11:36:33 2007 UTC (4 years, 11 months ago) by piso
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +6 -3 lines
o Wrap ppc_setup_intr() at 80.
o Fix a bit the indentation.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Fri Feb 23 23:05:31 2007 UTC (4 years, 11 months ago) by jhb
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +1 -1 lines
Whitespace fix.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri Feb 23 16:25:08 2007 UTC (4 years, 11 months ago) by jhb
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +1 -2 lines
Use 'pause' in several places rather than trying to tsleep() on NULL (which
triggers a KASSERT) or local variables.  In the case of kern_ndis, the
tsleep() actually used a common sleep address (curproc) making it
susceptible to a premature wakeup.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Fri Feb 23 12:18:50 2007 UTC (4 years, 11 months ago) by piso
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +4 -4 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.45.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.45: preferred, colored
Changes since revision 1.45: +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.52: download - view: text, markup, annotated - select for diffs
Fri May 12 05:04:42 2006 UTC (5 years, 9 months ago) by jhb
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +0 -9 lines
Remove various bits of conditional Alpha code and fixup a few comments.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon Apr 24 23:31:51 2006 UTC (5 years, 9 months ago) by marcel
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +66 -236 lines
o  Move ISA specific code from ppc.c to ppc_isa.c -- a bus front-
   end for isa(4).
o  Add a seperate bus frontend for acpi(4) and allow ISA DMA for
   it when ISA is configured in the kernel. This allows acpi(4)
   attachments in non-ISA configurations, as is possible for ia64.
o  Add a seperate bus frontend for pci(4) and detect known single
   port parallel cards.
o  Merge PC98 specific changes under pc98/cbus into the MI driver.
   The changes are minor enough for conditional compilation and
   in this form invites better abstraction.
o  Have ppc(4) usabled on all platforms, now that ISA specifics
   are untangled enough.

Revision 1.50: 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.49: preferred, colored
Changes since revision 1.49: +42 -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.49: download - view: text, markup, annotated - select for diffs
Wed Feb 22 21:47:04 2006 UTC (5 years, 11 months ago) by jhb
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +0 -1 lines
G/C unused variable.

Revision 1.48: 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.47: preferred, colored
Changes since revision 1.47: +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.47: download - view: text, markup, annotated - select for diffs
Wed Dec 21 10:54:47 2005 UTC (6 years, 1 month ago) by ru
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +1 -0 lines
Add missing MODULE_DEPEND() so that ppbus.ko and these .ko's can be
loaded dynamically.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sun Dec 4 02:12:42 2005 UTC (6 years, 2 months ago) by ru
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +1 -1 lines
Fix -Wundef.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Tue Apr 12 23:32:26 2005 UTC (6 years, 9 months ago) by imp
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.44: preferred, colored
Changes since revision 1.44: +2 -2 lines
don't use C keyword register as CPP macro argument name

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun May 30 20:08:37 2004 UTC (7 years, 8 months ago) by phk
Branches: MAIN
CVS tags: 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
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +1 -0 lines
Add missing <sys/module.h> includes

Revision 1.43: download - view: text, markup, annotated - select for diffs
Wed Mar 17 17:50:39 2004 UTC (7 years, 10 months ago) by njl
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +6 -4 lines
Convert callers to the new bus_alloc_resource_any(9) API.

Submitted by:	Mark Santcroos <marks@ripe.net>
Reviewed by:	imp, dfr, bde

Revision 1.42: download - view: text, markup, annotated - select for diffs
Fri Aug 1 02:25:32 2003 UTC (8 years, 6 months ago) by ambrisko
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.41: preferred, colored
Changes since revision 1.41: +35 -42 lines
Add printer support to puc(4) driver.
      -	Move isa/ppc* to sys/dev/ppc (repo-copy)
      -	Add an attachment method to ppc for puc
      -	In puc we need to walk the chain of parents.
Still to do, is to make ppc(4) & puc(4) work on other platforms.  Testers
wanted.

PR:		38372 (in spirit done differently)
Verified by:	Make universe (if I messed up a platform please fix)

Revision 1.41: download - view: text, markup, annotated - select for diffs
Wed Jun 11 00:32:45 2003 UTC (8 years, 8 months ago) by obrien
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -3 lines
Use __FBSDID().

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sat May 31 20:20:52 2003 UTC (8 years, 8 months ago) by phk
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +0 -7 lines
Remove break after return;

Found by:       FlexeLint

Revision 1.39: download - view: text, markup, annotated - select for diffs
Wed Apr 30 12:57:39 2003 UTC (8 years, 9 months ago) by markm
Branches: MAIN
CVS tags: old_RELENG_5_1_BP, old_RELENG_5_1_0_RELEASE, old_RELENG_5_1
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +1 -1 lines
Fix some easy, global, lint warnings. In most cases, this means
making some local variables static. In a couple of cases, this means
removing an unused variable.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sun Mar 2 16:54:37 2003 UTC (8 years, 11 months ago) by des
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -3 lines
More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sat Mar 23 15:36:13 2002 UTC (9 years, 10 months ago) by nsouch
Branches: MAIN
CVS tags: old_RELENG_5_0_BP, old_RELENG_5_0_0_RELEASE, old_RELENG_5_0
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +1 -0 lines
Restore the original copyright

Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Dec 10 08:09:46 2001 UTC (10 years, 2 months ago) by obrien
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +12 -12 lines
Update to C99, s/__FUNCTION__/__func__/,
also don't use ANSI string concatenation.

Revision 1.26.2.5: download - view: text, markup, annotated - select for diffs
Tue Oct 2 05:21:45 2001 UTC (10 years, 4 months ago) by nsouch
Branches: old_RELENG_4
CVS tags: old_RELENG_4_8_BP, old_RELENG_4_8_0_RELEASE, old_RELENG_4_8, old_RELENG_4_7_BP, old_RELENG_4_7_0_RELEASE, old_RELENG_4_7, old_RELENG_4_6_BP, old_RELENG_4_6_2_RELEASE, old_RELENG_4_6_1_RELEASE, old_RELENG_4_6_0_RELEASE, old_RELENG_4_6, old_RELENG_4_5_BP, old_RELENG_4_5_0_RELEASE, old_RELENG_4_5
Diff to: previous 1.26.2.4: preferred, colored; branchpoint 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26.2.4: +13 -9 lines
MFC. Change outb/inb to busspace.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Aug 30 09:15:22 2001 UTC (10 years, 5 months ago) by msmith
Branches: MAIN
CVS tags: old_KSE_PRE_MILESTONE_2, old_KSE_MILESTONE_2
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -1 lines
Add ACPI attachments.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Jun 23 06:52:54 2001 UTC (10 years, 7 months ago) by nsouch
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +13 -9 lines
Convert inb/outb to bus_space.

Submitted by:	jcm@FreeBSD-uk.eu.org

Revision 1.26.2.4: download - view: text, markup, annotated - select for diffs
Fri Mar 2 16:03:24 2001 UTC (10 years, 11 months ago) by nsouch
Branches: old_RELENG_4
CVS tags: old_RELENG_4_4_BP, old_RELENG_4_4_0_RELEASE, old_RELENG_4_4, old_RELENG_4_3_BP, old_RELENG_4_3_0_RELEASE, old_RELENG_4_3
Diff to: previous 1.26.2.3: preferred, colored; branchpoint 1.26: preferred, colored
Changes since revision 1.26.2.3: +36 -36 lines
MFC. Fix PS/2 mode configuration when parallel port chip is in ECP
by BIOS.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Jan 25 10:51:41 2001 UTC (11 years ago) by nsouch
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +36 -36 lines
Consider that the chipset may be in ECP mode (from BIOS settings)
even if mode PS/2 is forced with bootflags. As a matter of fact,
chipsets needs some extra configuration for accessing PS/2 mode
from ECP. The current patch is only relevant for generic chipsets
since specific code is supposed to deal with this during detection.

Revision 1.26.2.3: download - view: text, markup, annotated - select for diffs
Tue Dec 19 21:30:47 2000 UTC (11 years, 1 month ago) by nsouch
Branches: old_RELENG_4
Diff to: previous 1.26.2.2: preferred, colored; branchpoint 1.26: preferred, colored
Changes since revision 1.26.2.2: +2 -2 lines
MFC.

PR:	i386/22568

Revision 1.32: download - view: text, markup, annotated - select for diffs
Tue Dec 19 21:28:17 2000 UTC (11 years, 1 month ago) by nsouch
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -2 lines
Fix the PR. Getting a dma channel equal to 0 remains a problem though.

PR:		i386/22568

Revision 1.26.2.2: download - view: text, markup, annotated - select for diffs
Sat Jul 22 09:09:36 2000 UTC (11 years, 6 months ago) by dfr
Branches: old_RELENG_4
CVS tags: old_RELENG_4_2_0_RELEASE, old_RELENG_4_1_1_RELEASE, old_RELENG_4_1_0_RELEASE
Diff to: previous 1.26.2.1: preferred, colored; branchpoint 1.26: preferred, colored
Changes since revision 1.26.2.1: +47 -7 lines
MFC: Add support for PC87303 chipset.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Jul 20 09:28:07 2000 UTC (11 years, 6 months ago) by dfr
Branches: MAIN
CVS tags: old_PRE_SMPNG
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +47 -7 lines
Add support for the PC87303 chipset (found on Miata alphas) and add
support for relocating the port address if the isa hints specify a
different address from the address the chipset currently has.

Submitted by: Andrew M. Miklic <miklic@ibm.net>

Revision 1.26.2.1: download - view: text, markup, annotated - select for diffs
Tue Jul 18 20:39:05 2000 UTC (11 years, 6 months ago) by dfr
Branches: old_RELENG_4
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +126 -15 lines
MFC: Port ppc driver to alpha

Revision 1.30: download - view: text, markup, annotated - select for diffs
Tue Jul 18 09:01:09 2000 UTC (11 years, 6 months ago) by dfr
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +111 -31 lines
Add smc37c935 chipset support and clean up the code which tries to
allocate a short port range in some alpha configurations.

Submitted by: "Andrew M. Miklic" <miklic@udlkern.fc.hp.com>,
	      Mark Abene <phiber@radicalmedia.com>

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Jun 25 09:20:56 2000 UTC (11 years, 7 months ago) by dfr
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +5 -3 lines
Only print the diagnostic about extended I/O ports if bootverbose is true.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun May 14 13:47:55 2000 UTC (11 years, 8 months ago) by dfr
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +26 -2 lines
Port ppc driver to alpha.

Submitted by: Andrew M. Miklic <miklic@ibm.net>

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Apr 22 15:08:50 2000 UTC (11 years, 9 months ago) by wollman
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +12 -7 lines
Enable PnP attachment for parallel port controllers.

PR:		17495

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Jan 29 14:02:30 2000 UTC (12 years ago) by peter
Branches: MAIN
CVS tags: old_RELENG_4_BP, old_RELENG_4_0_0_RELEASE
Branch point for: old_RELENG_4
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +1 -5 lines
Remove #include "ppc.h" and #if NPPC > 0 - this is always true as it is
'optional ppc' in conf/files*

Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Jan 25 22:21:45 2000 UTC (12 years ago) by dfr
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +27 -11 lines
* Don't use ivars to access resources, bus_set/get_resource is much better.
* First approximation of making this work on alpha (not working yet).

Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Jan 14 05:03:23 2000 UTC (12 years ago) by peter
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +5 -4 lines
Don't do device_set_desc() until after checking for PnP probes.  Otherwise
things like sound cards can get called "Parallel port".  A note to the
unwary; the isa-pnp devices in the system are probed like PCI - each
device ID is passed to *all* isa probe routines to find the best match.
If the driver is not prepared to deal with this, it must abort in this
scenario or it will try and claim all PnP devices.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Jan 14 00:18:05 2000 UTC (12 years ago) by nsouch
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +509 -311 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.15.2.2: download - view: text, markup, annotated - select for diffs
Sun Aug 29 16:07:30 1999 UTC (12 years, 5 months ago) by peter
Branches: old_old_RELENG_3
CVS tags: old_old_RELENG_3_4_0_RELEASE, old_old_RELENG_3_3_0_RELEASE
Diff to: previous 1.15.2.1: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.1: +1 -1 lines
$Id$ -> $FreeBSD$

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

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Apr 22 13:10:43 1999 UTC (12 years, 9 months ago) by peter
Branches: MAIN
CVS tags: old_old_PRE_VFS_BIO_NFS_PATCH, old_old_PRE_SMP_VMSHARE, old_old_POST_VFS_BIO_NFS_PATCH, old_old_POST_SMP_VMSHARE
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -2 lines
Return the port size from the probe.
"ppc0 at port 0x378 irq 7 drq 3 on isa0" becomes
"ppc0 at port 0x378-0x37f irq 7 drq 3 on isa0"

Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Sun Feb 14 22:05:29 1999 UTC (12 years, 11 months ago) by nsouch
Branches: old_old_RELENG_3
CVS tags: old_old_RELENG_3_2_PAO_BP, old_old_RELENG_3_2_PAO, old_old_RELENG_3_2_0_RELEASE, old_old_RELENG_3_1_0_RELEASE
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +13 -8 lines
Fix ppc interrupt handling at boot.

Ensure PPBPRI is correctly interpreted by compiler.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Feb 14 22:02:47 1999 UTC (12 years, 11 months ago) by nsouch
Branches: MAIN
CVS tags: old_old_PRE_NEWBUS, old_old_POST_NEWBUS
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
More appropriate fix to the id_irq read during probe

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Feb 14 17:09:59 1999 UTC (12 years, 11 months ago) by nsouch
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2 lines
The way the interrupt id was calculated was wrong and the lpt
driver was thinking irq was enabled although it wasn't.
This case was particular to a no-interrupt static configuration.

Reported by: "Norman C. Rice" <nrice@emu.sourcee.com>

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Feb 14 12:03:35 1999 UTC (12 years, 11 months ago) by nsouch
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +10 -5 lines
Fix interrupt handling with DMA. Bit nFault was tested in the control reg.
instead of the status reg. and check ECP mode before considering nFault.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Jan 31 11:52:04 1999 UTC (13 years ago) by nsouch
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
Fix compile warnings about missing braces around static initialization of unions.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Jan 30 15:35:38 1999 UTC (13 years ago) by nsouch
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +13 -15 lines
Distinguish EPP address/data register. Add EPP address register access to ppi.

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>

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Jan 10 16:41:13 1999 UTC (13 years, 1 month ago) by nsouch
Branches: MAIN
CVS tags: old_old_RELENG_3_BP
Branch point for: old_old_RELENG_3
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +9 -9 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.14: download - view: text, markup, annotated - select for diffs
Sun Jan 10 12:04:53 1999 UTC (13 years, 1 month ago) by nsouch
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +435 -48 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.13: download - view: text, markup, annotated - select for diffs
Wed Dec 30 00:37:42 1998 UTC (13 years, 1 month ago) by hoek
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
Silence -Wtrigraph.

Submitted by:	Bradley Dunn <bradley@dunn.org>  (pr: kern/8817)

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Dec 7 21:58:22 1998 UTC (13 years, 2 months ago) by archie
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -9 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.11: download - view: text, markup, annotated - select for diffs
Sat Oct 31 11:37:09 1998 UTC (13 years, 3 months ago) by nsouch
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +201 -88 lines
pcf.c: timeout management added

ppc.c: nsc code improved. Actually, a complete rewrite.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Oct 22 05:58:40 1998 UTC (13 years, 3 months ago) by bde
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -2 lines
Initialize isa_devtab entries for interrupt handlers in individual
device drivers, not in ioconf.c.  Use a different hack in isa_device.h
so that a new config(8) is not required yet.

pc98 parts approved by: kato

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Sep 20 14:47:01 1998 UTC (13 years, 4 months ago) by nsouch
Branches: MAIN
CVS tags: old_old_RELENG_3_0_0_RELEASE
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +18 -26 lines
- program counter was previously an index in the microsequence, now pc
  is struct ppb_microseq* pointing directly into the microsequence

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Sep 13 20:57:06 1998 UTC (13 years, 4 months ago) by nsouch
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
invalid printf call fixed -> compile time warning removed

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Sep 13 18:26:44 1998 UTC (13 years, 5 months ago) by nsouch
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +66 -26 lines
ppbus enhanced to support ZIP+ : microseq improved

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Sep 2 20:34:34 1998 UTC (13 years, 5 months ago) by nsouch
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +163 -43 lines
printing with compatible mode fixed if ECP available + more verbose if bootverbose set

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Aug 24 02:28:16 1998 UTC (13 years, 5 months ago) by bde
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -3 lines
Fixed printf format errors.  Only one left in LINT on i386's.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Aug 3 19:14:32 1998 UTC (13 years, 6 months ago) by msmith
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +555 -165 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.3: download - view: text, markup, annotated - select for diffs
Fri Apr 17 22:36:37 1998 UTC (13 years, 9 months ago) by des
Branches: MAIN
CVS tags: old_old_PRE_NOBDEV, old_old_PRE_DEVFS_SLICE, old_old_POST_DEVFS_SLICE
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Sep 1 02:08:41 1997 UTC (14 years, 5 months ago) by bde
Branches: MAIN
CVS tags: old_old_PRE_SOFTUPDATE, old_old_POST_SOFTUPDATE
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -8 lines
Removed unused #includes.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Aug 14 14:01:35 1997 UTC (14 years, 5 months ago) by msmith
Branches: MAIN
ISA Parallel-Port Bus chipset driver.
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