Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/hppa/dev/dino.c
RevisionDateAuthorComments
 1.18  06-Apr-2025  riastradh hppa/dev: Nix trailing whitespace.

No functional change intended.
 1.17  28-Jan-2024  macallan add missing bus_space_*_stream() methods instead of quietly aliasing them
to their potentially byte-swapping regular counterparts

ok skrll@
 1.16  29-Sep-2022  skrll branches: 1.16.4;
Remove unnecessary include of <sys/malloc.h>.
 1.15  16-Aug-2022  skrll Use designated initializers for hppa_pci_chipset_tag structs.
 1.14  16-Aug-2022  skrll Trailing whitespace
 1.13  18-Sep-2021  macallan explain why we skip over dev 1f func 7 in config space access functions
no functional change
 1.12  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.11  24-Apr-2021  thorpej branches: 1.11.8;
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?).
 1.10  23-Oct-2020  macallan branches: 1.10.4;
support mmap()
 1.9  16-Oct-2020  skrll Remove trailing whitespace
 1.8  16-Oct-2020  skrll KNF
 1.7  16-Oct-2020  macallan config space accesses to device 15 function 7 cause a machine check exception
on my C200, so weed them out.
Now we can scan the PCI buses without crashing.
 1.6  14-Jun-2020  chs replace EX_NOWAIT with EX_WAITOK in device attach methods.
remove checks for failures that can no longer occur.
 1.5  14-May-2020  skrll Mask all interrupts before reading (and clearing) the interrupt request
register in attach.

Picked up by an assert in the qemu code.
 1.4  16-Apr-2019  skrll branches: 1.4.4;
Re-arrange dino_softc members to improve alignment
 1.3  02-Oct-2015  msaitoh branches: 1.3.10; 1.3.18;
PCI Extended Configuration stuff written by nonaka@:
- Add PCI Extended Configuration Space support into x86.
- Check register offset of pci_conf_read() in MD part. It returns (pcireg_t)-1
if it isn't accessible.
- Decode Extended Capability in PCI Extended Configuration Space.
Currently the following extended capabilities are decoded:
- Advanced Error Reporting
- Virtual Channel
- Device Serial Number
- Power Budgeting
- Root Complex Link Declaration
- Root Complex Event Collector Association
- Access Control Services
- Alternative Routing-ID Interpretation
- Address Translation Services
- Single Root IO Virtualization
- Page Request
- TPH Requester
- Latency Tolerance Reporting
- Secondary PCI Express
- Process Address Space ID
- LN Requester
- L1 PM Substates
The following extended capabilities are not decoded yet:
- Root Complex Internal Link Control
- Multi-Function Virtual Channel
- RCRB Header
- Vendor Unique
- Configuration Access Correction
- Multiple Root IO Virtualization
- Multicast
- Resizable BAR
- Dynamic Power Allocation
- Protocol Multiplexing
- Downstream Port Containment
- Precision Time Management
- M-PCIe
- Function Reading Status Queueing
- Readiness Time Reporting
- Designated Vendor-Specific
 1.2  31-Mar-2014  christos branches: 1.2.4; 1.2.6; 1.2.10; 1.2.12;
fix eisa_intr_string
 1.1  24-Feb-2014  skrll Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.
 1.2.12.1  27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.2.10.3  03-Dec-2017  jdolecek update from HEAD
 1.2.10.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.10.1  31-Mar-2014  tls file dino.c was added on branch tls-maxphys on 2014-08-20 00:03:04 +0000
 1.2.6.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2.6.1  31-Mar-2014  yamt file dino.c was added on branch yamt-pagecache on 2014-05-22 11:39:50 +0000
 1.2.4.2  18-May-2014  rmind sync with head
 1.2.4.1  31-Mar-2014  rmind file dino.c was added on branch rmind-smpnet on 2014-05-18 17:45:10 +0000
 1.3.18.1  10-Jun-2019  christos Sync with HEAD
 1.3.10.1  20-Apr-2019  martin Pull up following revision(s) (requested by skrll in ticket #1235):

sys/arch/hppa/conf/files.hppa: revision 1.20
sys/arch/hppa/dev/dino.c: revision 1.4

dino depends on gedoens

-

Re-arrange dino_softc members to improve alignment
 1.4.4.1  03-Aug-2020  martin Pull up following revision(s) (requested by skrll in ticket #1035):

sys/arch/hppa/dev/lasi.c: revision 1.3
sys/arch/hppa/dev/wax.c: revision 1.2
sys/arch/hppa/dev/asp.c: revision 1.2
sys/arch/hppa/dev/dino.c: revision 1.5

Mask all interrupts before reading (and clearing) the interrupt request
register in attach.

Picked up by an assert in the qemu code.
 1.10.4.2  02-Apr-2021  thorpej config_found_ia() -> config_found() w/ CFARG_IATTR.
 1.10.4.1  22-Mar-2021  thorpej Mechanical conversion of config_found_sm_loc() -> config_found().
CFARG_IATTR usage needs to be audited.
 1.11.8.1  04-Aug-2021  thorpej Adapt to CFARGS().
 1.16.4.1  17-Feb-2024  martin Pull up following revision(s) (requested by macallan in ticket #592):

sys/arch/hppa/hppa/mainbus.c: revision 1.13
sys/arch/hppa/dev/elroy.c: revision 1.7
sys/arch/hppa/dev/dino.c: revision 1.17
sys/arch/hppa/include/bus_funcs.h: revision 1.2
sys/arch/hppa/include/bus_defs.h: revision 1.3

add missing bus_space_*_stream() methods instead of quietly aliasing them
to their potentially byte-swapping regular counterparts

ok skrll@

RSS XML Feed