History log of /netbsd-src/sys/arch/hp300/dev/dio.c (Results 1 – 25 of 43)
Revision Date Author Comments
# ff204039 16-Jan-2024 thorpej <thorpej@NetBSD.org>

Fix computation of the appropriate auto-vector interrupt level to use
for the DMA controller by tracking all of the DIO devices that have
"ISRPRI_BIO" interrupt handlers, and finding the highest auto

Fix computation of the appropriate auto-vector interrupt level to use
for the DMA controller by tracking all of the DIO devices that have
"ISRPRI_BIO" interrupt handlers, and finding the highest auto-vector
level among them and informing the DMA controller.

Previously, in a post-flattening world, the DMA controller was always
told to interrupt at lev5, which is fine I guess although definitely not
ideal, but would not work on aaaancient HP320 Rev A DMA boards. To that
effect, print a warning if a Rev B DMA board ends up at ipl != 3 (we can't
differentiate between a Rev A and a Rev B board).

show more ...


# 8179ecca 16-Jan-2024 thorpej <thorpej@NetBSD.org>

Switch hp300 over to the common interrupt dispatch code.

XXX There are still some things to fix up here, but it's no worse
than it was before (the problems date back to when we flattened
the device

Switch hp300 over to the common interrupt dispatch code.

XXX There are still some things to fix up here, but it's no worse
than it was before (the problems date back to when we flattened
the device interrupt levels into IPL_VM).

show more ...


# c7fb772b 07-Aug-2021 thorpej <thorpej@NetBSD.org>

Merge thorpej-cfargs2.


# 2685996b 24-Apr-2021 thorpej <thorpej@NetBSD.org>

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass a

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

show more ...


# 1c9d295a 26-Mar-2014 christos <christos@NetBSD.org>

kill sprintf


# 094e0e9b 06-Mar-2011 tsutsui <tsutsui@NetBSD.org>

Remove trailing spaces.


# ce099b40 28-Apr-2008 martin <martin@NetBSD.org>

Remove clause 3 and 4 from TNF licenses


# 440f7c7b 29-Mar-2008 tsutsui <tsutsui@NetBSD.org>

Split device_t/softc, and misc cosmetic changes.


# 53524e44 04-Mar-2007 christos <christos@NetBSD.org>

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.


# 3c612311 21-Jul-2006 tsutsui <tsutsui@NetBSD.org>

Use bus_space_map(9) and bus_space_vaddr(9) rather than iomap().


# 7d4b57d7 21-Jul-2006 tsutsui <tsutsui@NetBSD.org>

Some KNF.


# 5f1c88d7 24-Dec-2005 perry <perry@NetBSD.org>

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.


# 95e1ffb1 11-Dec-2005 christos <christos@NetBSD.org>

merge ktrace-lwp.


# 44bf0a7e 26-Aug-2005 drochner <drochner@NetBSD.org>

s/locdesc_t/int/g


# b081eee0 28-Jun-2005 drochner <drochner@NetBSD.org>

convert remaining autoconf bus "submatch" functions to use the new
signature (passing locators), and remove some which obviously don't
serve any purpose
(untested, sorry)


# 2be3acc2 02-Jan-2005 tsutsui <tsutsui@NetBSD.org>

u_intNN_t -> uintNN_t


# 8ca927b4 28-Aug-2004 thorpej <thorpej@NetBSD.org>

Use ANSI function decls, static, and const.


# b6c031f5 17-Nov-2003 tsutsui <tsutsui@NetBSD.org>

TAB/space cleanup.


# 7c9baaa8 01-Aug-2003 tsutsui <tsutsui@NetBSD.org>

Add "oddbyte" bus_space(9) access ops for DIO devices which have
odd byte address space.


# 7a650363 01-Aug-2003 tsutsui <tsutsui@NetBSD.org>

Modify hp300 bus_space(9) structures/functions to add hooks to override
access functions. This is required by some DIO devices to use MI drivers.


# 8e726b52 24-May-2003 gmcgarry <gmcgarry@NetBSD.org>

Clean-up the DIO bus. Includes two main changes:

1) Pass address and ipl locators at attachment;
2) Remove hack which made the internal HP-IB controller
look like a DIO device.

The hack to allo

Clean-up the DIO bus. Includes two main changes:

1) Pass address and ipl locators at attachment;
2) Remove hack which made the internal HP-IB controller
look like a DIO device.

The hack to allow the nhpib driver to support internal and DIO
controllers appears to be a leftover from 4.3BD where it was not
possible to have a driver attach to different busses. NetBSD has
supported bus-dependent attachments for a long time.

show more ...


# 65d98ed7 01-Apr-2003 thorpej <thorpej@NetBSD.org>

Use PAGE_SIZE rather than NBPG.


# 72a2c879 01-Jan-2003 thorpej <thorpej@NetBSD.org>

Use aprint_normal() for cfprint routines.


# 85dbe5f6 22-Dec-2002 gmcgarry <gmcgarry@NetBSD.org>

Make the DMA controller a separate device attached to intio. Intio
devices can use the DMA controller too.


# c5e91d44 02-Oct-2002 thorpej <thorpej@NetBSD.org>

Use CFATTACH_DECL().


12