summaryrefslogtreecommitdiff
path: root/sys/dev/marvell
AgeCommit message (Collapse)Author
2021-12-10s/occured/occurred/ in comments, log messages and man pages.andvar
2021-12-05s/sumary/summary/msaitoh
2021-12-05s/initialz/initializ/ in comment.msaitoh
2021-12-05s/decriptor/descriptor/ in comment.msaitoh
2021-12-05s/decript/decrypt/ in comment.msaitoh
2021-11-10s/endianess/endianness/msaitoh
2021-11-10s/Erorr/Error/ in comment.msaitoh
2021-10-30"no affect" -> "no effect" in man pages and comments.andvar
2021-09-17some love to double letters (in comments).andvar
2021-09-11sysinst/partitions.h: fix typos comments, also fix same typos in other files.andvar
2021-08-30Add ARMEB support to mvgbe(4).rin
For ARMEB, peripheral is configured to little-endian mode, even if CPU itself is in big-endian mode. Therefore, we need to configure the device to little-endian mode, and byte-swap descriptor fields (unlike the case of powerpc).
2021-08-17fix multiplei repetitive typos in comments, messages and documentation. ↵andvar
mainly because copy paste code big amount of files are affected.
2021-08-13s/fame/frame in mvxpe_mib_def with assumption that it was not intentional typo.andvar
2021-08-13s/struture/structure/ s/structre/structure/andvar
2021-08-07Merge thorpej-cfargs2.thorpej
2021-08-02fix various typos in comments and log messages.andvar
2021-07-24Fix all remaining typos, mainly in comments but also in few definitions and ↵andvar
log messages, reported by me in PR kern/54889. Also fixed some additional typos in comments, found on review of same files or typos.
2021-04-24Merge thorpej-cfargs branch:thorpej
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?).
2020-09-05Round of uvm.h cleanup.riastradh
The poorly named uvm.h is generally supposed to be for uvm-internal users only. - Narrow it to files that actually need it -- mostly files that need to query whether curlwp is the pagedaemon, which should maybe be exposed by an external header. - Use uvm_extern.h where feasible and uvm_*.h for things not exposed by it. We should split up uvm_extern.h but this will serve for now to reduce the uvm.h dependencies. - Use uvm_stat.h and #ifdef UVMHIST uvm.h for files that use UVMHIST(ubchist), since ubchist is declared in uvm.h but the reference evaporates if UVMHIST is not defined, so we reduce header file dependencies. - Make uvm_device.h and uvm_swap.h independently includable while here. ok chs@
2020-07-25Make this build with or without options IPSEC.riastradh
Not really that useful without options IPSEC, but simply uncommenting mvxpsec in conf/ARMADAXP didn't build, and this change is trivial, so why not.
2020-07-25Omit needless rijndael dependencies.riastradh
2020-07-07Overhaul the interface to pci_configure_bus():thorpej
- Don't expose how PCI bus configuration resource management is implemented. Provide a new resource provider API: ==> pciconf_resource_init() -- Initialize a PCI configuration resources container. ==> pciconf_resource_add() -- Add a PCI configuration resource to the container (I/O, MEM, or prefetchable MEM). Multiple resources of each type may be added. ==> pciconf_resource_fini() -- Tear down the PCI configurtation resources container once the bus has been configured. This is much easier to use than the previous method of providing an extent map for each kind of resource, and works better for e.g. ACPI platforms that provide potentially multiple PCI resources in tables provided by firmware. - Re-implement PCI configuration resource management using vmem arenas, rather than extent maps.
2020-06-14mvcesa(4): Don't use prev msg's last block as IV for next msg in CBC.riastradh
This violates the security contract of the CBC construction, which requires that the IV be unpredictable in advance; an adaptive adversary can exploit this to verify plaintext guesses. XXX Compile-tested only.
2020-06-14replace EX_NOWAIT with EX_WAITOK in device attach methods.chs
remove checks for failures that can no longer occur.
2020-04-22Make crypto/rijindael optional again as cprng_strong does no longerrin
depend on it. Dependency is explicitly declared in files.foo if a component requires it.
2020-02-05Adopt <net/if_stats.h>skrll
2020-02-04Adopt <net/if_stats.h>skrll
2020-02-03Adopt <net/if_stats.h>skrll
2020-01-12Clean up gttwsi's register access stuff:thorpej
- Garbage-collect the obsolete GTTWSI_ALLWINNER option; it hasn't been needed since FDT'ization of the Allwinner support code. - Redefine thw "TWSI_*" register definitions to clearly call out: -> The Marvell flavor of the offsets -> The Allwinner flavor of the offsets ...and make the regular definitions indices into a register map. - Pass the appropriate register map from the front-end to the core. - Remove the customer register read/write callbacks -- they are no longer needed now that each front-end passes an appropriate register map to the core.
2019-12-28Fix typos in messages.gutteridge
2019-12-27s/transfered/transferred/msaitoh
2019-12-27s/expresion/expression/ in comment.msaitoh
2019-12-27s/opration/operation/msaitoh
2019-12-26s/lenght/length/msaitoh
2019-11-10in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAITchs
and remove code to handle failures that can no longer happen.
2019-10-15convert more KM_NOSLEEP to KM_SLEEP and remove code to handle failures.chs
2019-10-01make this compile again:chs
- remove unused config attributes - rename a local variable to avoid a name conflict
2019-09-13 if_flags is neither int nor short. It's unsigned short.msaitoh
2019-08-13ensure spibus_attach_args is zero'edtnn
2019-05-28 Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.msaitoh
2019-05-24 Whilespace fix. No functional change.msaitoh
2019-05-23 Whitespace fix (mainly tabify).msaitoh
2019-05-23No functional change:msaitoh
- Simplify MII structure initialization and reference. - u_int*_t -> uint*_t. - KNF
2019-05-23-No functional change:msaitoh
- Simplify struct ethercom's pointer near ETHER_FIRST_MULTI(). - Simplify MII structure initialization. - u_int*_t -> uint*_t. - KNF
2019-04-24 This driver uses MII(4) and have hook SIOC[GS]IFMEDIA which just pass tomsaitoh
ifmedia_ioctl(), the hook is not required because ether_ioctl has it (if_ethersubr.c rev. 1.160). This driver might require some additional fixes for SIOCSIFMTU and other ioctl()s.
2019-04-22 These drivers do ether_ioctl() on SIOC{ADD,DEL}MULTI, SIOC{G,S}IFMEDIA andmsaitoh
default case in the switch statement. Only the default case didn't check the return value with ENETRESET. Integrate them to one ether_ioctl() with ENETRESET test. This change might improve some other ioctl()s which return ENETRESET by calling if_init().
2019-04-22 On drivers which use MII(4) and have hook SIOC[GS]IFMEDIA which just pass tomsaitoh
ifmedia_ioctl(), the hook is not required because ether_ioctl has it (if_ethersubr.c rev. 1.160). These drivers don't return ENETRESET in ifmedia_ioctl(), so no functional change.
2019-03-18 s/pakcet/packet/ in comment.msaitoh
2019-01-27Merge the [pgoyette-compat] branchpgoyette
2019-01-22 Change MII PHY read/write API from:msaitoh
int (*mii_readreg_t)(device_t, int, int); void (*mii_writereg_t)(device_t, int, int, int); to: int (*mii_readreg_t)(device_t, int, int, uint16_t *); int (*mii_writereg_t)(device_t, int, int, uint16_t); Now we can test if a read/write operation failed or not by the return value. In 802.3 spec says that the PHY shall not respond to read/write transaction to the unimplemented register(22.2.4.3). Detecting timeout can be used to check whether a register is implemented or not (if the register conforms to the spec). ukphy(4) can be used this for MII_MMDACR and MII_MMDAADR. Note that I noticed that the following code do infinite loop in the read/wirte function. If it accesses unimplemented PHY register, it will hang. It should be fixed: arm/at91/at91emac.c arm/ep93xx/epe.c arm/omap/omapl1x_emac.c mips/ralink/ralink_eth.c arch/powerpc/booke/dev/pq3etsec.c(read) dev/cadence/if_cemac.c <- hkenken dev/ic/lan9118.c Tested with the following device: axe+ukphy axe+rgephy axen+rgephy (tested by Andrius V) wm+atphy wm+ukphy wm+igphy wm+ihphy wm+makphy sk+makphy sk+brgphy sk+gentbi msk+makphy sip+icsphy sip+ukphy re+rgephy bge+brgphy bnx+brgphy gsip+gphyter rtk+rlphy fxp+inphy (tested by Andrius V) tlp+acphy ex+exphy epic+qsphy vge+ciphy (tested by Andrius V) vr+ukphy (tested by Andrius V) vte+ukphy (tested by Andrius V) Not tested (MAC): arm:at91emac arm:cemac arm:epe arm:geminigmac arm:enet arm:cpsw arm:emac(omac) arm:emac(sunxi) arm:npe evbppc:temac macppc:bm macppc:gm mips:aumac mips:ae mips:cnmac mips:reth mips:sbmac playstation2:smap powerpc:tsec powerpc:emac(ibm4xx) sgimips:mec sparc:be sf ne(ax88190, dl10019) awge ep gem hme smsh mtd sm age alc ale bce cas et jme lii nfe pcn ste stge tl xi aue mue smsc udav url Not tested (PHY): amhphy bmtphy dmphy etphy glxtphy ikphy iophy lxtphy nsphyter pnaphy rdcphy sqphy tlphy tqphy urlphy