History log of /openbsd-current/sys/dev/sbus/esp_sbus.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.27 17-May-2024 miod

Update comments to match reality.


Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE OPENBSD_7_5_BASE
# 1.26 13-Mar-2022 mpi

Constify struct cfattach.

ok miod@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.25 08-Sep-2017 deraadt

If you use sys/param.h, you don't need sys/types.h


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.24 18-Jan-2014 dlg

instead of having every bit of glue set up and attach an identical
scsi_adapter struct, just do it once in the chip code.

ok krw@


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.23 28-Jun-2010 krw

Remove all adapter-specific 'struct scsi_device's. They are never used. First
step in elminating 'struct scsi_device' entirely.

Spotted and initial diff from matthew@.

ok matthew@ dlg@ deraadt@ marco@ miod@


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.22 16-Feb-2009 miod

Extend the scsi_adapter minphys() callback to take a struct scsi_link *
as additional argument. This will allow intermediate layers between
scsi devices such as sd and scsi host adapters to take appropriate
action if necessary.


Revision tags: OPENBSD_4_4_BASE
# 1.21 26-Jun-2008 ray

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.20 10-Apr-2007 miod

``it's'' -> ``its'' when the grammar gods require this change.


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.19 21-Jun-2006 miod

Pick the sbus clock frequency from the attach args instead of peeking at the
parent softc.


# 1.18 02-Jun-2006 miod

sbus_establish() and the associated linked list in the sbus softc is now only
used to store a per-device reset callback, for use in sbusreset(). Except
sbusreset() has never, ever, been used since Torek's sbus code went in.
Time to recycle those wasted bits.


# 1.17 05-Mar-2006 miod

Use more queue macros rather than doing it by hand; ok otto@ krw@


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.16 29-Sep-2004 miod

Ratibibugle now useless evcnt structures.


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE SMP_SYNC_A SMP_SYNC_B
# 1.15 03-Jul-2003 jason

ansify


# 1.14 27-Jun-2003 jason

These don't need linear mappings either.


# 1.13 24-Jun-2003 henric

Add a "where" argument to the sparc64 interrupt code. This lets us
associate a name with each interrupt handler. This is not visible
outside the kernel (yet).

ok jason@


Revision tags: UBC_SYNC_A
# 1.12 27-Mar-2003 jason

Don't need linear mappings in here.


Revision tags: OPENBSD_3_3_BASE
# 1.11 17-Feb-2003 henric

Add support for the Sun Enterprise 450
Reduce the size of a GENERIC kernel by ~190k
Remove the nasty pointer/bus_space_handle_t casts
Adds debug bus_space code including the ability to trace
bus operations (it actually works now).

The following rules are now followed (and verfified by the debug
code):

1. A "bus_space_handle_t" may only be used with the
"bus_space_tag_t" that created it.
2. Only "bus_space_map()" may create "bus_space_handle_t"s.
3. A "bus_space_handle_t" may not be modified after it has
been created (other than being destroyed by "bus_space_unmap()").


Thanks to help from mcbride, marc, jason, drahn, to anyone that might
have slipped my mind at the moment.

ok jason@, deraadt@


# 1.10 11-Feb-2003 mickey

be consistant on Hz vs hz


# 1.9 09-Feb-2003 jason

make ESP_SBUS_DEBUG compile


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE UBC_SYNC_B
# 1.8 09-Apr-2002 jason

because SUNW,fas boards don't have a corresponding 'dma' device, searching
for the corresponding 'dma' for a non-fas 'esp' needs to have an offset
(really a count of the number of 'fas's)


# 1.7 14-Mar-2002 millert

Final __P removal plus some cosmetic fixups


# 1.6 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_3_0_BASE UBC_BASE
# 1.5 27-Sep-2001 jason

branches: 1.5.4; 1.5.6;
Huge merge with NetBSD. For full details look at their revision history (1.26 -> 1.83)...
Highlights:
o tag queue support
o fas366 support (doesn't work yet on sparc, but does on sparc64)
o tons more
(thanks to hugh, fgsch and beck for testing)


# 1.4 26-Sep-2001 jason

bad me, don't break current builds with uncomitted dependent changes.


# 1.3 25-Sep-2001 jason

pretty up attach messages (as best as possible) for fas.
pull in reset fix for ESC revsions from NetBSD


# 1.2 21-Aug-2001 jason

rcsid


# 1.1 21-Aug-2001 jason

esp driver from NetBSD (compiles and even probes disks =)


# 1.26 13-Mar-2022 mpi

Constify struct cfattach.

ok miod@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.25 08-Sep-2017 deraadt

If you use sys/param.h, you don't need sys/types.h


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.24 18-Jan-2014 dlg

instead of having every bit of glue set up and attach an identical
scsi_adapter struct, just do it once in the chip code.

ok krw@


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.23 28-Jun-2010 krw

Remove all adapter-specific 'struct scsi_device's. They are never used. First
step in elminating 'struct scsi_device' entirely.

Spotted and initial diff from matthew@.

ok matthew@ dlg@ deraadt@ marco@ miod@


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.22 16-Feb-2009 miod

Extend the scsi_adapter minphys() callback to take a struct scsi_link *
as additional argument. This will allow intermediate layers between
scsi devices such as sd and scsi host adapters to take appropriate
action if necessary.


Revision tags: OPENBSD_4_4_BASE
# 1.21 26-Jun-2008 ray

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.20 10-Apr-2007 miod

``it's'' -> ``its'' when the grammar gods require this change.


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.19 21-Jun-2006 miod

Pick the sbus clock frequency from the attach args instead of peeking at the
parent softc.


# 1.18 02-Jun-2006 miod

sbus_establish() and the associated linked list in the sbus softc is now only
used to store a per-device reset callback, for use in sbusreset(). Except
sbusreset() has never, ever, been used since Torek's sbus code went in.
Time to recycle those wasted bits.


# 1.17 05-Mar-2006 miod

Use more queue macros rather than doing it by hand; ok otto@ krw@


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.16 29-Sep-2004 miod

Ratibibugle now useless evcnt structures.


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE SMP_SYNC_A SMP_SYNC_B
# 1.15 03-Jul-2003 jason

ansify


# 1.14 27-Jun-2003 jason

These don't need linear mappings either.


# 1.13 24-Jun-2003 henric

Add a "where" argument to the sparc64 interrupt code. This lets us
associate a name with each interrupt handler. This is not visible
outside the kernel (yet).

ok jason@


Revision tags: UBC_SYNC_A
# 1.12 27-Mar-2003 jason

Don't need linear mappings in here.


Revision tags: OPENBSD_3_3_BASE
# 1.11 17-Feb-2003 henric

Add support for the Sun Enterprise 450
Reduce the size of a GENERIC kernel by ~190k
Remove the nasty pointer/bus_space_handle_t casts
Adds debug bus_space code including the ability to trace
bus operations (it actually works now).

The following rules are now followed (and verfified by the debug
code):

1. A "bus_space_handle_t" may only be used with the
"bus_space_tag_t" that created it.
2. Only "bus_space_map()" may create "bus_space_handle_t"s.
3. A "bus_space_handle_t" may not be modified after it has
been created (other than being destroyed by "bus_space_unmap()").


Thanks to help from mcbride, marc, jason, drahn, to anyone that might
have slipped my mind at the moment.

ok jason@, deraadt@


# 1.10 11-Feb-2003 mickey

be consistant on Hz vs hz


# 1.9 09-Feb-2003 jason

make ESP_SBUS_DEBUG compile


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE UBC_SYNC_B
# 1.8 09-Apr-2002 jason

because SUNW,fas boards don't have a corresponding 'dma' device, searching
for the corresponding 'dma' for a non-fas 'esp' needs to have an offset
(really a count of the number of 'fas's)


# 1.7 14-Mar-2002 millert

Final __P removal plus some cosmetic fixups


# 1.6 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_3_0_BASE UBC_BASE
# 1.5 27-Sep-2001 jason

branches: 1.5.4; 1.5.6;
Huge merge with NetBSD. For full details look at their revision history (1.26 -> 1.83)...
Highlights:
o tag queue support
o fas366 support (doesn't work yet on sparc, but does on sparc64)
o tons more
(thanks to hugh, fgsch and beck for testing)


# 1.4 26-Sep-2001 jason

bad me, don't break current builds with uncomitted dependent changes.


# 1.3 25-Sep-2001 jason

pretty up attach messages (as best as possible) for fas.
pull in reset fix for ESC revsions from NetBSD


# 1.2 21-Aug-2001 jason

rcsid


# 1.1 21-Aug-2001 jason

esp driver from NetBSD (compiles and even probes disks =)


Revision tags: OPENBSD_6_2_BASE
# 1.25 08-Sep-2017 deraadt

If you use sys/param.h, you don't need sys/types.h


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.24 18-Jan-2014 dlg

instead of having every bit of glue set up and attach an identical
scsi_adapter struct, just do it once in the chip code.

ok krw@


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.23 28-Jun-2010 krw

Remove all adapter-specific 'struct scsi_device's. They are never used. First
step in elminating 'struct scsi_device' entirely.

Spotted and initial diff from matthew@.

ok matthew@ dlg@ deraadt@ marco@ miod@


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.22 16-Feb-2009 miod

Extend the scsi_adapter minphys() callback to take a struct scsi_link *
as additional argument. This will allow intermediate layers between
scsi devices such as sd and scsi host adapters to take appropriate
action if necessary.


Revision tags: OPENBSD_4_4_BASE
# 1.21 26-Jun-2008 ray

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.20 10-Apr-2007 miod

``it's'' -> ``its'' when the grammar gods require this change.


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.19 21-Jun-2006 miod

Pick the sbus clock frequency from the attach args instead of peeking at the
parent softc.


# 1.18 02-Jun-2006 miod

sbus_establish() and the associated linked list in the sbus softc is now only
used to store a per-device reset callback, for use in sbusreset(). Except
sbusreset() has never, ever, been used since Torek's sbus code went in.
Time to recycle those wasted bits.


# 1.17 05-Mar-2006 miod

Use more queue macros rather than doing it by hand; ok otto@ krw@


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.16 29-Sep-2004 miod

Ratibibugle now useless evcnt structures.


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE SMP_SYNC_A SMP_SYNC_B
# 1.15 03-Jul-2003 jason

ansify


# 1.14 27-Jun-2003 jason

These don't need linear mappings either.


# 1.13 24-Jun-2003 henric

Add a "where" argument to the sparc64 interrupt code. This lets us
associate a name with each interrupt handler. This is not visible
outside the kernel (yet).

ok jason@


Revision tags: UBC_SYNC_A
# 1.12 27-Mar-2003 jason

Don't need linear mappings in here.


Revision tags: OPENBSD_3_3_BASE
# 1.11 17-Feb-2003 henric

Add support for the Sun Enterprise 450
Reduce the size of a GENERIC kernel by ~190k
Remove the nasty pointer/bus_space_handle_t casts
Adds debug bus_space code including the ability to trace
bus operations (it actually works now).

The following rules are now followed (and verfified by the debug
code):

1. A "bus_space_handle_t" may only be used with the
"bus_space_tag_t" that created it.
2. Only "bus_space_map()" may create "bus_space_handle_t"s.
3. A "bus_space_handle_t" may not be modified after it has
been created (other than being destroyed by "bus_space_unmap()").


Thanks to help from mcbride, marc, jason, drahn, to anyone that might
have slipped my mind at the moment.

ok jason@, deraadt@


# 1.10 11-Feb-2003 mickey

be consistant on Hz vs hz


# 1.9 09-Feb-2003 jason

make ESP_SBUS_DEBUG compile


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE UBC_SYNC_B
# 1.8 09-Apr-2002 jason

because SUNW,fas boards don't have a corresponding 'dma' device, searching
for the corresponding 'dma' for a non-fas 'esp' needs to have an offset
(really a count of the number of 'fas's)


# 1.7 14-Mar-2002 millert

Final __P removal plus some cosmetic fixups


# 1.6 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_3_0_BASE UBC_BASE
# 1.5 27-Sep-2001 jason

branches: 1.5.4; 1.5.6;
Huge merge with NetBSD. For full details look at their revision history (1.26 -> 1.83)...
Highlights:
o tag queue support
o fas366 support (doesn't work yet on sparc, but does on sparc64)
o tons more
(thanks to hugh, fgsch and beck for testing)


# 1.4 26-Sep-2001 jason

bad me, don't break current builds with uncomitted dependent changes.


# 1.3 25-Sep-2001 jason

pretty up attach messages (as best as possible) for fas.
pull in reset fix for ESC revsions from NetBSD


# 1.2 21-Aug-2001 jason

rcsid


# 1.1 21-Aug-2001 jason

esp driver from NetBSD (compiles and even probes disks =)