Home | History | Annotate | Download | only in pci
History log of /src/sys/arch/prep/pci/gten.c
RevisionDateAuthorComments
 1.24  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.23  24-Apr-2021  thorpej branches: 1.23.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.22  21-Nov-2020  thorpej branches: 1.22.2;
malloc(9) -> kmem(9)
 1.21  10-Nov-2019  chs branches: 1.21.8;
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.
 1.20  01-Jul-2011  dyoung branches: 1.20.54;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.19  18-Jun-2011  matt struct device * -> device_t
struct cfdata * -> cfdata_t
use device accessors, use device_private.
some softc/device_t splits (macppc needs a bunch more)
aprint*_dev used considerably more
 1.18  17-Dec-2008  cegger branches: 1.18.12;
kill MALLOC and FREE macros.
 1.17  28-Apr-2008  martin branches: 1.17.8;
Remove clause 3 and 4 from TNF licenses
 1.16  17-Oct-2007  garbled branches: 1.16.16; 1.16.18; 1.16.20;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.15  04-Mar-2007  christos branches: 1.15.2; 1.15.10; 1.15.18; 1.15.20; 1.15.22; 1.15.24;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.14  09-May-2006  garbled branches: 1.14.14;
More KNF. That should be the rest of the .c files.
 1.13  12-Apr-2006  jmmv Add an extra cookie to the ioctl and mmap wsdisplay accessops that points
to the screen on which they are being called. The driver cannot guess
this by itself but it is needed to implement, at least, the getwschar and
putwschar functions in the correct place. There are no functional changes
yet.

Tested on i386 (vga, vga_raster, machfb, vesafb), macppc and sparc64.
Suggested and reviewed by macallan@.
 1.12  11-Dec-2005  christos branches: 1.12.4; 1.12.6; 1.12.8; 1.12.10; 1.12.12;
merge ktrace-lwp.
 1.11  23-Apr-2004  itojun branches: 1.11.12;
pass string length (= boundary info) to pci_devinfo so that we do not run over
the end of memory region
 1.10  13-Nov-2003  chs eliminate uvm_useracc() in favor of checking the return value of
copyin() or copyout().

uvm_useracc() tells us whether the mapping permissions allow access to
the desired part of an address space, and many callers assume that
this is the same as knowing whether an attempt to access that part of
the address space will succeed. however, access to user space can
fail for reasons other than insufficient permission, most notably that
paging in any non-resident data can fail due to i/o errors. most of
the callers of uvm_useracc() make the above incorrect assumption. the
rest are all misguided optimizations, which optimize for the case
where an operation will fail. we'd rather optimize for operations
succeeding, in which case we should just attempt the access and handle
failures due to insufficient permissions the same way we handle i/o
errors. since there appear to be no good uses of uvm_useracc(), we'll
just remove it.
 1.9  15-Jul-2003  lukem __KERNEL_RCSID()
 1.8  02-Oct-2002  thorpej branches: 1.8.6;
Add trailing ; to CFATTACH_DECL.
 1.7  01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.6  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.5  04-Jul-2002  junyoung alloc_attr -> allocattr

Approved by Matthias Drochner.
 1.4  17-Mar-2002  atatat branches: 1.4.4;
Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command". ERESTART is -1, which can lead to
confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4. No ioctl code should now return -1 anywhere. The
ioctl() system call is now properly restartable.
 1.3  24-Feb-2002  kleink In order to support both indirect PCI configuration space access as well
as direct-mapped PCI configuration space access (such as implemented on
the IBM 27-82650 PCI Host Bridge), switch to a function vector based
PCI configuration space access implementation. The appropriate PCI
chipset tag is provided by platform-specific code.
 1.2  02-Dec-2000  matt branches: 1.2.2; 1.2.6; 1.2.10;
Cleanup/fixup gten support. Add TNF copyright (opps). This now outputs
text correctly. There is no colormap support (e.g. the mechanisms are in
place but does yet talk to the hardware).
 1.1  01-Dec-2000  matt Add support for the IBM ThinkPad 820 G10 display (which is a WD90C24A behind
a funky PCI-VLBUS bridge).
 1.2.10.4  18-Oct-2002  nathanw Catch up to -current.
 1.2.10.3  01-Aug-2002  nathanw Catch up to -current.
 1.2.10.2  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.2.10.1  28-Feb-2002  nathanw Catch up to -current.
 1.2.6.4  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.2.6.3  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.2.6.2  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.6.1  16-Mar-2002  jdolecek Catch up with -current.
 1.2.2.2  08-Dec-2000  bouyer Sync with HEAD.
 1.2.2.1  02-Dec-2000  bouyer file gten.c was added on branch thorpej_scsipi on 2000-12-08 09:30:21 +0000
 1.4.4.1  16-Jul-2002  gehenna catch up with -current.
 1.8.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.8.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.8.6.1  03-Aug-2004  skrll Sync with HEAD
 1.11.12.3  27-Oct-2007  yamt sync with head.
 1.11.12.2  03-Sep-2007  yamt sync with head.
 1.11.12.1  21-Jun-2006  yamt sync with head.
 1.12.12.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.12.10.2  11-May-2006  elad sync with head
 1.12.10.1  19-Apr-2006  elad sync with head - hopefully this will work
 1.12.8.1  24-May-2006  yamt sync with head.
 1.12.6.2  01-Jun-2006  kardel Sync with head.
 1.12.6.1  22-Apr-2006  simonb Sync with head.
 1.12.4.1  09-Sep-2006  rpaulo sync with head
 1.14.14.1  12-Mar-2007  rmind Sync with HEAD.
 1.15.24.1  25-Oct-2007  bouyer Sync with HEAD.
 1.15.22.1  18-Oct-2007  yamt sync with head.
 1.15.20.1  06-Nov-2007  matt sync with HEAD
 1.15.18.1  26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.15.10.1  10-May-2007  garbled convert printf's to aprint_*.
 1.15.2.1  23-Oct-2007  ad Sync with head.
 1.16.20.2  04-May-2009  yamt sync with head.
 1.16.20.1  16-May-2008  yamt sync with head.
 1.16.18.1  18-May-2008  yamt sync with head.
 1.16.16.2  17-Jan-2009  mjf Sync with HEAD.
 1.16.16.1  02-Jun-2008  mjf Sync with HEAD.
 1.17.8.1  19-Jan-2009  skrll Sync with HEAD.
 1.18.12.1  23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.20.54.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.21.8.1  14-Dec-2020  thorpej Sync w/ HEAD.
 1.22.2.1  21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.23.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed