History log of /src/sys/arch/hpcmips/vr/vrgiu.c |
Revision | | Date | Author | Comments |
1.48 |
| 06-May-2023 |
andvar | s/regster/register/ in comments and error messages.
|
1.47 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.46 |
| 22-May-2021 |
thorpej | branches: 1.46.4; Be explicit about our interface attributes.
|
1.45 |
| 24-Apr-2021 |
thorpej | branches: 1.45.2; 1.45.4; 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.44 |
| 21-Nov-2020 |
thorpej | branches: 1.44.2; malloc(9) -> kmem(9)
|
1.43 |
| 10-Nov-2019 |
chs | branches: 1.43.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.42 |
| 27-Oct-2012 |
chs | branches: 1.42.38; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.41 |
| 18-Mar-2009 |
cegger | branches: 1.41.12; 1.41.22; Ansify function definitions w/o arguments. Generated with sed.
|
1.40 |
| 11-Dec-2005 |
christos | branches: 1.40.78; 1.40.86; 1.40.92; merge ktrace-lwp.
|
1.39 |
| 15-Jul-2003 |
lukem | __KERNEL_RCSID()
|
1.38 |
| 02-Oct-2002 |
thorpej | branches: 1.38.6; Use CFATTACH_DECL().
|
1.37 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.36 |
| 27-Sep-2002 |
provos | remove trailing \n in panic(). approved perry.
|
1.35 |
| 03-May-2002 |
takemura | Fixed debug print.
|
1.34 |
| 10-Feb-2002 |
takemura | Made vrgiu.c combilable without SINGLE_VRIP_BASE macro.
|
1.33 |
| 09-Feb-2002 |
sato | access GIUIOSEL_REG and GIUINTEN_REG only if these registers are not GIU_NO_REG_W.
|
1.32 |
| 02-Feb-2002 |
takemura | Removed __vrcmu_supply() and __vrgiu_out(), which are need to enable serial port before auto configuration.
Boot loaders (pbsdboot and hpcboot) are responsible to enable the port because the kernel can't enable serial port for console any more.
|
1.31 |
| 29-Jan-2002 |
uch | clean up debug print and configuration.
|
1.30 |
| 27-Jan-2002 |
takemura | Added vripif.
|
1.29 |
| 26-Jan-2002 |
takemura | Straightened vripvar.h
|
1.28 |
| 29-Dec-2001 |
takemura | Added debugging output indicating details of interrupt register setting.
|
1.27 |
| 16-Dec-2001 |
takemura | BUGFIX: it gets bus error on Vr4122 and Vr4131 attempting to access pull-up/pull-down registers if you turn on verbose output. And moved softc structure definition from vrgiuvar.h to vrgiu.c, which was needless in other parts of kernel.
|
1.26 |
| 16-Sep-2001 |
uch | branches: 1.26.4; ANSIfy, KNF.
|
1.25 |
| 07-Sep-2001 |
sato | VR4131 have same restriction as VR4122.
|
1.24 |
| 18-May-2001 |
enami | branches: 1.24.2; 1.24.4; Don't touch GIU{USE,TERM}UPDN_REG_W if ONLY_VR4122 is defined. XXX ... for now. better way is needed.
|
1.23 |
| 09-May-2001 |
shin | don't define TAILQ_EMPTY here. TAILQ_EMPTY is defined in <sys/queue.h>.
|
1.22 |
| 06-May-2001 |
takemura | Vrc4172 GPIO support. This device is currently configured on PenCentra 130.
|
1.21 |
| 01-May-2001 |
takemura | Fix 'busname' to attach nodes correctly.
|
1.20 |
| 30-Apr-2001 |
takemura | Machine independent GPIO interface.
|
1.19 |
| 21-Apr-2001 |
sato | dump io setting: DPRINTF->VPRINTF
|
1.18 |
| 18-Apr-2001 |
sato | - support VR4122 vrip register map. - support VR4122 ICU register map. - support VR4122 intr levels. XXX: currently if 'options VR4122' is defined, XXX: cannot specify 'options VR4121','options VR4111', 'options VR4102'. XXXX: i have not the VR4122 based hardware.. so no check for VR4122.
|
1.17 |
| 27-Dec-2000 |
sato | branches: 1.17.2; -rewite codes by using new CONFIG_HOOK_SET and CONFIG_HOOK_EVENT.
|
1.16 |
| 03-Oct-2000 |
sato | flash led when intrrupt.
|
1.15 |
| 25-Sep-2000 |
sato | #include <sys/reboot.h> would probably suffice for those.
|
1.14 |
| 25-Sep-2000 |
sato | - add debug/verbose functions.
|
1.13 |
| 25-Sep-2000 |
sato | - can compile these files. #include <sys/boot_flag.h>
|
1.12 |
| 24-Sep-2000 |
jdolecek | add new macro BOOT_FLAG() (defined in <sys/boot_flag.h>) - this maps standard boot flags to corresponding RB_* values use BOOT_FLAG() in port's MD code as appropriate
as discussed on tech-kern, add new boot flags -v, -q for booting verbosely or quietly, and corresponding AB_VERBOSE/AB_QUIET boot flags; also add FreeBSD-compatible bootverbose macro and NetBSD-specific bootquiet macro
for hpcmips, use new bootverbose instead of it's own hpcmips_verbose
Tested on i386, and to limited extend (compile of affected files) also for mvme68k, hp300, luna68k, sun3.
|
1.11 |
| 20-Jul-2000 |
deberg | don't define TAILQ_FOREACH, it's in sys/queue.h now.
|
1.10 |
| 03-Apr-2000 |
sato | branches: 1.10.4; - hpcmips_verbose - pbsdboot -v option - WIN I/O setting - vrisa IRQ GPIO mapping - memory banks.
|
1.9 |
| 14-Mar-2000 |
sato | change about debug print. CVS
|
1.8 |
| 11-Mar-2000 |
shin | fix typo.
|
1.7 |
| 10-Mar-2000 |
sato | fix print message when #undef VRGIUDEBUG and change a little.
|
1.6 |
| 22-Feb-2000 |
sato | delete warning.
|
1.5 |
| 27-Jan-2000 |
sato | - fix using uninitialized argument of bitdisp64().
|
1.4 |
| 23-Dec-1999 |
takemura | New button handler and power controller with configurable hooking mechanism.
|
1.3 |
| 04-Dec-1999 |
takemura | Print input/output/interrupt settings.
|
1.2 |
| 07-Nov-1999 |
uch | Clear interrupt status before dispatch handler.
|
1.1 |
| 16-Sep-1999 |
takemura | branches: 1.1.1; Initial revision
|
1.1.1.1 |
| 16-Sep-1999 |
takemura | branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.8; Import NetBSD/hpcmips source files from hpcmips repository. file list: sys/arch/hpcmips/ distrib/hpcmips/ etc/etc.hpcmips/ lib/libc/arch/mips/fplib/ lib/libc/arch/mips/fplib/Makefile.inc lib/libc/arch/mips/fplib/environment.h lib/libc/arch/mips/fplib/fplib_glue.c lib/libc/arch/mips/fplib/fplib_libc.c lib/libc/arch/mips/fplib/hpcmips-gcc.h lib/libc/arch/mips/fplib/softfloat-macros.h lib/libc/arch/mips/fplib/softfloat-specialize.h lib/libc/arch/mips/fplib/softfloat.c lib/libc/arch/mips/fplib/softfloat.h lib/libc/arch/mips/gen/ieee.h lib/libc/arch/mips/gen/sf_fabs.c lib/libc/arch/mips/gen/sf_flt_rounds.c lib/libc/arch/mips/gen/sf_fpgetmask.c lib/libc/arch/mips/gen/sf_fpgetround.c lib/libc/arch/mips/gen/sf_fpgetsticky.c lib/libc/arch/mips/gen/sf_fpsetmask.c lib/libc/arch/mips/gen/sf_fpsetround.c lib/libc/arch/mips/gen/sf_fpsetsticky.c lib/libc/arch/mips/gen/sf_isinf.c lib/libc/arch/mips/gen/sf_ldexp.c lib/libc/arch/mips/gen/sf_modf.c
|
1.1.1.1.8.1 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.1.1.1.4.1 |
| 15-Nov-1999 |
fvdl | Sync with -current
|
1.1.1.1.2.4 |
| 23-Apr-2001 |
bouyer | Sync with HEAD.
|
1.1.1.1.2.3 |
| 21-Apr-2001 |
bouyer | Sync with HEAD
|
1.1.1.1.2.2 |
| 05-Jan-2001 |
bouyer | Sync with HEAD
|
1.1.1.1.2.1 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago A i386 GENERIC kernel compiles without the siop, ahc and bha drivers (will be updated later). i386 IDE/ATAPI and ncr work, as well as sparc/esp_sbus. alpha should work as well (untested yet). siop, ahc and bha will be updated once I've updated the branch to current -current, as well as machine-dependant code.
|
1.10.4.1 |
| 09-May-2001 |
he | Pull up revisions 1.11, 1.23 (via patch, requested by shin): Remove local queue macro definitions, they're in <sys/queue.h> now.
|
1.17.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.24.4.1 |
| 01-Oct-2001 |
fvdl | Catch up with -current.
|
1.24.2.6 |
| 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.24.2.5 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.24.2.4 |
| 16-Mar-2002 |
jdolecek | Catch up with -current.
|
1.24.2.3 |
| 11-Feb-2002 |
jdolecek | Sync w/ -current.
|
1.24.2.2 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.24.2.1 |
| 13-Sep-2001 |
thorpej | Update the kqueue branch to HEAD.
|
1.26.4.5 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.26.4.4 |
| 20-Jun-2002 |
nathanw | Catch up to -current.
|
1.26.4.3 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.26.4.2 |
| 08-Jan-2002 |
nathanw | Catch up to -current.
|
1.26.4.1 |
| 16-Sep-2001 |
nathanw | file vrgiu.c was added on branch nathanw_sa on 2002-01-08 00:25:07 +0000
|
1.38.6.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.38.6.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.38.6.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.40.92.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.40.86.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.40.78.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.41.22.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.41.12.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.42.38.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.43.8.1 |
| 14-Dec-2020 |
thorpej | Sync w/ HEAD.
|
1.44.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.45.4.1 |
| 31-May-2021 |
cjep | sync with head
|
1.45.2.1 |
| 17-Jun-2021 |
thorpej | Sync w/ HEAD.
|
1.46.4.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|