History log of /netbsd-src/sys/arch/algor/pci/pcib.c (Results 1 – 25 of 29)
Revision Date Author Comments
# a5175f1e 08-Feb-2024 andvar <andvar@NetBSD.org>

s/sharable/shareable in comments and documentation.


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


# ae873cf0 14-Nov-2020 thorpej <thorpej@NetBSD.org>

malloc(9) -> kmem(9)


# d47bcd29 10-Nov-2019 chs <chs@NetBSD.org>

in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.


# f5439ed7 09-Jul-2011 matt <matt@NetBSD.org>

Allow algor kernels to be built under either algor/algor64 or
evbmips-el/evbmips64-el. Note that MAXMAPARITITONS and majors numbers
differ between the two ports which is why two kernels are still ne

Allow algor kernels to be built under either algor/algor64 or
evbmips-el/evbmips64-el. Note that MAXMAPARITITONS and majors numbers
differ between the two ports which is why two kernels are still needed.

show more ...


# eee38be7 08-Jul-2011 matt <matt@NetBSD.org>

Major update of algor.
Now uses generic mips bus_space.h bus_dma.h isa_machdep.h pci_machdep.h
Now uses evbmips versions of cpu.c isadma_bounce.c mcclock_isa.c


# e265f67b 01-Jul-2011 dyoung <dyoung@NetBSD.org>

#include <sys/bus.h> instead of <machine/bus.h>.


# 22b3444c 19-Aug-2009 dyoung <dyoung@NetBSD.org>

Define, and hook into the isa_chipset_tag_t, pcib_isa_detach_hook().


# 454af1c0 14-Mar-2009 dsl <dsl@NetBSD.org>

Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle

Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)

show more ...


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

Remove clause 3 and 4 from TNF licenses


# 337a4c70 12-May-2006 tsutsui <tsutsui@NetBSD.org>

According to the i8259 manual, EOI, R, and SL bits belong to OCW2 register
so rename them OCW3_* -> OCW2_*.


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

merge ktrace-lwp.


# 46289e1f 30-Aug-2004 drochner <drochner@NetBSD.org>

Phase out the use of a string as first "attach args" member to control
which bustype should be attached with a specific call to config_found()
(from a "mainbus" or a bus bridge).
Do it for isa/eisa/m

Phase out the use of a string as first "attach args" member to control
which bustype should be attached with a specific call to config_found()
(from a "mainbus" or a bus bridge).
Do it for isa/eisa/mca and pci/agp for now. These buses all attach to
an mi interface attribute "isabus", "eisabus" etc., and the autoconf
framework now allows to specify an interface attribute on config_found()
and config_search(), which limits the search of matching config data
to these which attach to that specific attribute.
So we basically have to call config_found_ia(..., "foobus", ...) where
such a bus is attached.
As a consequence, where a "mainbus" or alike also attaches other
devices (eg CPUs) which do not attach to a specific attribute yet,
we need at least pass an attribute name (different from "foobus") so
that the foo bus is not found at these places. This made some minor
changes necessary which are not obviously related to the mentioned buses.

show more ...


# 61230437 23-Apr-2004 itojun <itojun@NetBSD.org>

pass string length (= boundary info) to pci_devinfo so that we do not run over
the end of memory region


# 20a53a58 02-Nov-2003 he <he@NetBSD.org>

Fix uninitialized error in pcib_print().


# 41a403fb 01-Jan-2003 thorpej <thorpej@NetBSD.org>

Use aprint_normal() for cfprint() routines.


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

Fix script-o's in last.


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

Use CFATTACH_DECL().


# 9a711d69 27-Sep-2002 thorpej <thorpej@NetBSD.org>

Declare all cfattach structures const.


# 0c37c9e8 22-Jun-2001 thorpej <thorpej@NetBSD.org>

Check in work-in-progress of P-6032 support. This is not tested,
but is meant for back-up purposes.


# b440db94 22-Jun-2001 thorpej <thorpej@NetBSD.org>

Fill in one P-6032 snippet.


# 1ce7119f 21-Jun-2001 thorpej <thorpej@NetBSD.org>

More ISA interrupt rototilling. I get *some* interrupts on a:

we1 at isa0 port 0x300-0x31f iomem 0xcc000-0xcffff irq 10
we1: WD8013WC Ethernet (16-bit)
we1: Ethernet address 00:00:c0:94:f6:72

...b

More ISA interrupt rototilling. I get *some* interrupts on a:

we1 at isa0 port 0x300-0x31f iomem 0xcc000-0xcffff irq 10
we1: WD8013WC Ethernet (16-bit)
we1: Ethernet address 00:00:c0:94:f6:72

...but still nothing on the PCIC.

show more ...


# f3410434 21-Jun-2001 thorpej <thorpej@NetBSD.org>

Rototill ISA interrupt code. In particular, I have remembered most
of the horror that is the 8259 PIC.

PCMCIA interrupts still not working yet, but getting closer.


# e51a0439 15-Jun-2001 thorpej <thorpej@NetBSD.org>

Yet more interrupt cleanup -- the platform mater interrupt establish
function now just takes an "irq", which is an index into the irqmap
table for that platform.


12