Home | History | Annotate | only in /src/sys/arch/mmeye/dev
History log of /src/sys/arch/mmeye/dev
RevisionDateAuthorComments
 1.13 08-Dec-2018  thorpej Clean up initialization of com_regs structure, in preparation for
some additional changers.
 1.12 19-Jul-2011  dyoung branches: 1.12.52; 1.12.54;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark mmeye/bus.h obsolete.
 1.11 19-Feb-2011  kiyohara Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.10 02-Feb-2011  kiyohara Use cf_name to match instead of cd_name.
Call com_is_console().
Using bus_space_tag_t and bus_space_handle_t is manners for more machines.
 1.9 28-Apr-2008  martin branches: 1.9.22; 1.9.28; 1.9.30;
Remove clause 3 and 4 from TNF licenses
 1.8 14-Mar-2008  cube branches: 1.8.2; 1.8.4;
Split device_t and softc for all com(4) devices (well, everything that
uses a com_softc backend). Use proper types and ansify where appropriate.
 1.7 13-Jul-2006  gdamore branches: 1.7.34; 1.7.54; 1.7.58;
Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@. Fixes PR port-evbmips/32362.
 1.6 11-Dec-2005  christos branches: 1.6.4; 1.6.8; 1.6.16;
merge ktrace-lwp.
 1.5 15-Jul-2003  lukem branches: 1.5.16;
__KERNEL_RCSID()
 1.4 14-Jun-2003  thorpej branches: 1.4.2;
Also pass a type argument to comcnattach() and com_kgdb_attach().
comspeed() (and thus cominit()) may need this information.
 1.3 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.2 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.1 24-Mar-2002  uch branches: 1.1.6; 1.1.8;
mmeye specific devices are moved to mmeye/dev
 1.1.8.3 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.1.8.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.8.1 24-Mar-2002  jdolecek file com_mainbus.c was added on branch kqueue on 2002-06-23 17:38:13 +0000
 1.1.6.2 18-Oct-2002  nathanw Catch up to -current.
 1.1.6.1 24-Mar-2002  nathanw file com_mainbus.c was added on branch nathanw_sa on 2002-10-18 02:38:55 +0000
 1.4.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.2.1 03-Aug-2004  skrll Sync with HEAD
 1.5.16.2 17-Mar-2008  yamt sync with head.
 1.5.16.1 30-Dec-2006  yamt sync with head.
 1.6.16.1 16-Jun-2006  gdamore Conver mmeye com_mainbus.c to new com framework.
 1.6.8.1 11-Aug-2006  yamt sync with head
 1.6.4.1 09-Sep-2006  rpaulo sync with head
 1.7.58.2 02-Jun-2008  mjf Sync with HEAD.
 1.7.58.1 03-Apr-2008  mjf Sync with HEAD.
 1.7.54.1 24-Mar-2008  keiichi sync with head.
 1.7.34.1 23-Mar-2008  matt sync with HEAD
 1.8.4.1 16-May-2008  yamt sync with head.
 1.8.2.1 18-May-2008  yamt sync with head.
 1.9.30.2 05-Mar-2011  bouyer Sync with HEAD
 1.9.30.1 08-Feb-2011  bouyer Sync with HEAD
 1.9.28.1 06-Jun-2011  jruoho Sync with HEAD.
 1.9.22.1 05-Mar-2011  rmind sync with head
 1.12.54.1 10-Jun-2019  christos Sync with HEAD
 1.12.52.1 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.1 19-Feb-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 19-Feb-2011  jruoho file if_ne_mainbus.c was added on branch jruoho-x86intr on 2011-06-06 09:06:13 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 19-Feb-2011  rmind file if_ne_mainbus.c was added on branch rmind-uvmplock on 2011-03-05 20:51:14 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 19-Feb-2011  bouyer file if_ne_mainbus.c was added on branch bouyer-quota2 on 2011-03-05 15:09:53 +0000
 1.27 13-Feb-2024  andvar s/enqueing/enqueuing/ in debug messages (took a bait from recent Nick's commit)
s/occaision/occasion/ in comment.
 1.26 29-Sep-2023  andvar Remove h->sock from DPRINTF arguments, it is leftover from shpcic_handle, removed
when code was moved to mmeye specific device code in 2002.
Add const for *width_names[] definition.
Redefine ioaddr in mmeyepcmcia_chip_io_alloc() and calculate in advance, since
DPRINTF() expects it as one of the arguments. This code was simplified with mmEye-WL
added support in 2011, but broke debug code.

Fixes MMEYEPCMCIADEBUG enabled build.
 1.25 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.24 24-Apr-2021  thorpej branches: 1.24.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.23 21-Nov-2020  thorpej branches: 1.23.2;
malloc(9) -> kmem(9)
 1.22 27-Oct-2012  chs branches: 1.22.50;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.21 26-Jul-2011  dyoung branches: 1.21.2; 1.21.12;
Don't set the iobase and iosize members of pcmciabus_attach_args because
they're not used in any meaningful way.
 1.20 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark mmeye/bus.h obsolete.
 1.19 19-Feb-2011  kiyohara Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.18 02-Feb-2011  kiyohara Remove unused macros.
 1.17 02-Feb-2011  kiyohara Add socket_settype of struct pcmcia_chip_functions. Always need it.
 1.16 02-Feb-2011  kiyohara Change to static functions.
 1.15 16-Mar-2009  dsl branches: 1.15.4; 1.15.6; 1.15.8;
ANSIfy functions with function-pointer arguments
 1.14 17-Oct-2007  garbled branches: 1.14.20; 1.14.28; 1.14.34;
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.13 09-Jul-2007  ad branches: 1.13.10;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.12 04-Mar-2007  christos branches: 1.12.2; 1.12.4; 1.12.10;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.11 24-Dec-2005  perry branches: 1.11.26;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.10 11-Dec-2005  christos merge ktrace-lwp.
 1.9 28-Jun-2005  drochner branches: 1.9.2;
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)
 1.8 28-Dec-2003  christos make the printf statement a complete line.
 1.7 15-Jul-2003  lukem __KERNEL_RCSID()
 1.6 01-Jan-2003  thorpej branches: 1.6.2;
Use aprint_normal() for cfprint routines.
 1.5 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.4 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.3 27-Sep-2002  thorpej Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller. Use it
rather than invoking cfattach->ca_match directly.
 1.2 01-Jun-2002  lukem branches: 1.2.2; 1.2.4;
SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n),
this mirrors the functionality of SLIST_REMOVE() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
 1.1 24-Mar-2002  uch branches: 1.1.2;
mmeye specific devices are moved to mmeye/dev
 1.1.2.1 14-Jul-2002  gehenna catch up with -current.
 1.2.4.3 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.4.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.4.1 01-Jun-2002  jdolecek file mmeyepcmcia.c was added on branch kqueue on 2002-06-23 17:38:14 +0000
 1.2.2.3 03-Jan-2003  thorpej Sync with HEAD.
 1.2.2.2 18-Oct-2002  nathanw Catch up to -current.
 1.2.2.1 01-Jun-2002  nathanw file mmeyepcmcia.c was added on branch nathanw_sa on 2002-10-18 02:38:56 +0000
 1.6.2.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.6.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.6.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.6.2.1 03-Aug-2004  skrll Sync with HEAD
 1.9.2.2 03-Sep-2007  yamt sync with head.
 1.9.2.1 21-Jun-2006  yamt sync with head.
 1.11.26.1 12-Mar-2007  rmind Sync with HEAD.
 1.12.10.1 03-Oct-2007  garbled Sync with HEAD
 1.12.4.1 11-Jul-2007  mjf Sync with head.
 1.12.2.1 15-Jul-2007  ad Sync with head.
 1.13.10.1 06-Nov-2007  matt sync with HEAD
 1.14.34.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.14.28.1 28-Apr-2009  skrll Sync with HEAD.
 1.14.20.1 04-May-2009  yamt sync with head.
 1.15.8.2 05-Mar-2011  bouyer Sync with HEAD
 1.15.8.1 08-Feb-2011  bouyer Sync with HEAD
 1.15.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.15.4.1 05-Mar-2011  rmind sync with head
 1.21.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.21.2.1 30-Oct-2012  yamt sync with head
 1.22.50.1 14-Dec-2020  thorpej Sync w/ HEAD.
 1.23.2.1 23-Mar-2021  thorpej Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.
 1.24.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.2 02-Feb-2011  kiyohara Indent.
 1.1 24-Mar-2002  uch branches: 1.1.6; 1.1.8; 1.1.142; 1.1.148; 1.1.150;
mmeye specific devices are moved to mmeye/dev
 1.1.150.1 08-Feb-2011  bouyer Sync with HEAD
 1.1.148.1 06-Jun-2011  jruoho Sync with HEAD.
 1.1.142.1 05-Mar-2011  rmind sync with head
 1.1.8.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.8.1 24-Mar-2002  jdolecek file mmeyepcmciareg.h was added on branch kqueue on 2002-06-23 17:38:14 +0000
 1.1.6.2 24-Mar-2002  uch mmeye specific devices are moved to mmeye/dev
 1.1.6.1 24-Mar-2002  uch file mmeyepcmciareg.h was added on branch nathanw_sa on 2002-03-24 18:08:47 +0000
 1.6 15-Sep-2025  thorpej Encapsulate what's needed to attach an I2C bus into a iicbus_attach()
inline.
 1.5 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.4 24-Apr-2021  thorpej branches: 1.4.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.3 27-Dec-2019  msaitoh branches: 1.3.10;
s/recive/receive/ in comment.
 1.2 22-Dec-2019  thorpej Cleanup i2c bus acquire / release, centralizing all of the logic into
iic_acquire_bus() / iic_release_bus(). "acquire" and "release" hooks
no longer need to be provided by back-end controller drivers (only if
they need special handling, e.g. powering on the i2c controller).
This results in the removal of a bunch of rendundant code from each
back-end controller driver.

Assert that we are not in hard interrupt context in iic_acquire_bus(),
iic_exec(), and iic_release_bus().
 1.1 19-Feb-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8; 1.1.62;
Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.1.62.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 19-Feb-2011  jruoho file rtciic.c was added on branch jruoho-x86intr on 2011-06-06 09:06:13 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 19-Feb-2011  rmind file rtciic.c was added on branch rmind-uvmplock on 2011-03-05 20:51:14 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 19-Feb-2011  bouyer file rtciic.c was added on branch bouyer-quota2 on 2011-03-05 15:09:53 +0000
 1.3.10.1 23-Mar-2021  thorpej Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.
 1.4.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.7 09-Sep-2019  jdolecek adjust several missed drivers for wdcprobe() changes of ATA NCQ branch

for dreamcast g1 just drop the custom reset function, it doesn't seem to do
anything useful over the generic variant

PR kern/54538 by Izumi Tsutsui
 1.6 20-Oct-2017  jdolecek branches: 1.6.4; 1.6.8;
move ata_queue_alloc(1) and ata_queue_free() calls to ata_channel_init()
and ata_channel_destroy() respectively, to make attachment code simpler,
and to make it easier to spot special queue manipulation like cmdide(4)

on topic of PR kern/52606
 1.5 07-Oct-2017  jdolecek adapt the rest of wdc attachments for NCQ branch merge
 1.4 31-Jul-2012  bouyer branches: 1.4.2;
Apply back changes that were reverted on Jul 24 and Jul 26 (general ata/wdc
cleanup and SATA PMP support), now that I'm back to fix the fallouts.
 1.3 26-Jul-2012  jakllsch Revert, with intention of restoring in a less invasive way, the SATA Port
Multiplier code.

ok christos@
 1.2 02-Jul-2012  bouyer Add sata Port MultiPlier (PMP) support to the ata bus layer,
as described in
http://mail-index.netbsd.org/tech-kern/2012/06/23/msg013442.html
PMP support in integrated to the atabus layer.
struct ata_channel's ch_drive[] is not dynamically allocated, and ch_ndrive
(renamed to ch_ndrives) closely reflects the size of the ch_drive[] array.
Add helper functions atabus_alloc_drives() and atabus_free_drives()
to manage ch_drive[]/ch_ndrives.
Add wdc_maxdrives to struct wdc_softc so that bus front-end can specify
how much drive they really support (master/slave or single).
ata_reset_drive() callback gains a uint32_t *sigp argument which,
when not NULL, will contain the signature of the device being reset.
While there, some cosmetic changes:
- added a drive_type enum to ata_drive_datas, and stop encoding the
probed drive type in drive_flags (we were out of drive flags anyway).
- rename DRIVE_ATAPIST to DRIVE_ATAPIDSCW to better reflect what this
really is
- remove ata_channel->ata_drives, it's redundant with the pointer in
ata_drive_datas
- factor out the interpretation of SATA signatures in sata_interpet_sig()

propagate these changes to the ATA HBA drivers, and add support for PMP
to ahcisata(4) and siisata(4).

Thanks to:
- Protocase (http://www.protocase.com/) which provided a system
with lots of controllers, SATA PMP and drive slots
- Conservation Genomics Laboratory, Department of Biology, New Mexico State
University for hosting the above system
- Brook Milligan, who set up remote access and has been very responsive
when SATA cable move was needed
 1.1 19-Feb-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8; 1.1.10;
Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.1.10.1 30-Oct-2012  yamt sync with head
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 19-Feb-2011  jruoho file wdc_mainbus.c was added on branch jruoho-x86intr on 2011-06-06 09:06:13 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 19-Feb-2011  rmind file wdc_mainbus.c was added on branch rmind-uvmplock on 2011-03-05 20:51:14 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 19-Feb-2011  bouyer file wdc_mainbus.c was added on branch bouyer-quota2 on 2011-03-05 15:09:53 +0000
 1.4.2.1 03-Dec-2017  jdolecek update from HEAD
 1.6.8.1 23-Sep-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #232):

sys/arch/evbppc/mpc85xx/wdc_obio.c: revision 1.7
sys/arch/dreamcast/dev/g1/wdc_g1.c: revision 1.4
sys/arch/dreamcast/dev/g1/wdc_g1.c: revision 1.5
sys/arch/mmeye/dev/wdc_mainbus.c: revision 1.7
sys/dev/ic/wdcvar.h: revision 1.99
sys/dev/ic/wdc.c: revision 1.292
sys/arch/mips/adm5120/dev/wdc_extio.c: revision 1.11

adjust several missed drivers for wdcprobe() changes of ATA NCQ branch
for dreamcast g1 just drop the custom reset function, it doesn't seem to do
anything useful over the generic variant

PR kern/54538 by Izumi Tsutsui

Restore interface to pass a MD reset function to MI wdcprobe().

Fixes silent hang on G1IDE on Dreamcast. PR kern/54538
Should be pulled up to netbsd-9 with the previous changes.
 1.6.4.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411

RSS XML Feed