History log of /freebsd/sys/dev/dwc/if_dwc.c (Results 1 – 25 of 106)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 4e62c3ca 02-Jan-2025 John Baldwin <jhb@FreeBSD.org>

Remove now-redundant calls to device_delete_child

Deleting a child explicitly before calling bus_generic_detach is now
redundant, so remove those calls and rely on bus_generic_detach to
delete child

Remove now-redundant calls to device_delete_child

Deleting a child explicitly before calling bus_generic_detach is now
redundant, so remove those calls and rely on bus_generic_detach to
delete children instead.

Differential Revision: https://reviews.freebsd.org/D47961

show more ...


Revision tags: release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0
# 1f469a9f 26-Dec-2023 Emmanuel Vadot <manu@FreeBSD.org>

hwreset: Move reset code in dev/hwreset

We've removed kernel option EXT_RESOURCES almost two years ago.
While it was ok to have some code under a common 'extres' subdirectory
at first, we now have a

hwreset: Move reset code in dev/hwreset

We've removed kernel option EXT_RESOURCES almost two years ago.
While it was ok to have some code under a common 'extres' subdirectory
at first, we now have a lot of consumer of it and we made it mandatory
so no need to have it under a cryptic name.

Reviewed by: imp
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D43192

show more ...


# be82b3a0 26-Dec-2023 Emmanuel Vadot <manu@FreeBSD.org>

clk: Move clock code in dev/clk

We've removed kernel option EXT_RESOURCES almost two years ago.
While it was ok to have some code under a common 'extres' subdirectory
at first, we now have a lot of

clk: Move clock code in dev/clk

We've removed kernel option EXT_RESOURCES almost two years ago.
While it was ok to have some code under a common 'extres' subdirectory
at first, we now have a lot of consumer of it and we made it mandatory
so no need to have it under a cryptic name.

Reviewed by: mhorne
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D43191

show more ...


# fdafd315 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

sys: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remov

sys: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix

show more ...


Revision tags: release/14.0.0
# 7854d0f6 06-Oct-2023 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Get the mii clock after calling IF_DWC_INIT

We need to calculate it based on the clocks and they aren't started
before IF_DWC_INIT.


# 4b7975ec 04-Oct-2023 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Remove if_dwc_mac_type

This doesn't represent the mac_type but if the DMA engine support
extended descriptors.
Read the HW_FEATURE register to learn if the DMA engine supports it.

No functiona

dwc: Remove if_dwc_mac_type

This doesn't represent the mac_type but if the DMA engine support
extended descriptors.
Read the HW_FEATURE register to learn if the DMA engine supports it.

No functional changes intended.

show more ...


# cef444d0 04-Oct-2023 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Move BUS_MODE_DEFAULT_PBL; in if_dwcvar.h

And rename it to DMA_DEFAULT_PBL, this is the default for all (most ?)
dma engine that dwc should support.
While here stop including dwc1000_reg.h in i

dwc: Move BUS_MODE_DEFAULT_PBL; in if_dwcvar.h

And rename it to DMA_DEFAULT_PBL, this is the default for all (most ?)
dma engine that dwc should support.
While here stop including dwc1000_reg.h in if_dwc.c, we don't need it anymore.

No functional changes intended.

show more ...


# 801fb66a 04-Oct-2023 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Do not re-invent phy mode type

Directly uses the MII_CONTYPE_*

No functional changes intended.


# 5d88a52b 04-Oct-2023 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Move dma engine configuration to dwc1000_dma.c

No functional changes intended.


# 363b7c39 04-Oct-2023 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Move the dma reset code in dwc1000_dma.c

No functional changes intended


# f0a7dd77 03-Oct-2023 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Setup desc addresses in the dma init function.


# 29776aa4 03-Oct-2023 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Move interrupt related code to core and dma file

No functional changes intended.


# afa0f66e 28-Sep-2023 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Move the txstart dma part to dwc1000_dma

This is dma related to move it to the dma file.

No functional changes intended.


# 62519d5a 28-Sep-2023 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Split core functions

Synopsis/Designware controller have multiple version. The version currently
supported by dwc(4) is the version 3 and it's usually called 1000 for gigabit.
In the goal to su

dwc: Split core functions

Synopsis/Designware controller have multiple version. The version currently
supported by dwc(4) is the version 3 and it's usually called 1000 for gigabit.
In the goal to support all of those in the same base driver start splitting the
core function to a new file.

No functional changes intended.

show more ...


# 972adf0f 28-Sep-2023 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Split dma functions

Synopsis/Designware controller have multiple dma version, the one included
in the driver is the base one. if_awg is one example of a dwc variant that
have another DMA contro

dwc: Split dma functions

Synopsis/Designware controller have multiple dma version, the one included
in the driver is the base one. if_awg is one example of a dwc variant that
have another DMA controller. eqos is a newer variant of dwc that have a newer
dma controller.
In the goal to support all of those in the same base driver start splitting the
dma function to a new file.

No functional changes intended.

show more ...


# c36125f6 25-Sep-2023 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Rename if_dwc.h to dwc1000_reg.h

Synopsis/Designware controller have multiple version. The version currently
supported by dwc(4) is the version 3 and it's usually called 1000 for gigabit.
This

dwc: Rename if_dwc.h to dwc1000_reg.h

Synopsis/Designware controller have multiple version. The version currently
supported by dwc(4) is the version 3 and it's usually called 1000 for gigabit.
This file only have definition for the registers of this version so rename it.

No functional changes intended.

show more ...


# 9e3879fc 26-Sep-2023 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Drop 'All rights reserved'

Discussed with: br


# 50059a60 23-Sep-2023 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Rewrite clock and reset functions

snps,dwmac have one required clock named stmmaceth and one optional pclk,
correctly handle both in if_dwc, no need to get/enable stmmacseth again
in if_dwc_rk.

dwc: Rewrite clock and reset functions

snps,dwmac have one required clock named stmmaceth and one optional pclk,
correctly handle both in if_dwc, no need to get/enable stmmacseth again
in if_dwc_rk.
It also have one required reset also named stmmaceth and one optional ahb,
correctly handle both.
Rockchip have another optional clock named clk_mac_speed, get it and enable it
if present. Also fix the optional RMII clocks, they were previously wrongly
enabled in RGMII case.

show more ...


# b69c49d1 23-Sep-2023 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Add support for aal

snps,aal is used to indicate that the DMA engine should
use Address-Aligned Beats.


# f4bb6ea5 23-Sep-2023 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Add support for mixed-burst

snps,mixed-burst is used to indicate that the DMA engine should
use mixed-burst mode.


# 27f03f16 23-Sep-2023 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Remove unused GPIO_ACTIVE_LOW define

While here move comment block above the appropriate functions.


# f114aadd 23-Sep-2023 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Rename dwc_reset to dwc_reset_phy

It only deals with reseting the phy.
While here avoid calling ofw_bus_get_node again and save the node in softc.


# 2a371643 21-Jul-2023 Justin Hibbits <jhibbits@FreeBSD.org>

IfAPI: Retire if_etherbpfmtap() and if_bpfmtap()

Summary:
These came in the original DrvAPI commits in 2014, and are obsoleted by
bpf_mtap_if() and ether_bpf_mtap_if(). The `_if` suffix, rather tha

IfAPI: Retire if_etherbpfmtap() and if_bpfmtap()

Summary:
These came in the original DrvAPI commits in 2014, and are obsoleted by
bpf_mtap_if() and ether_bpf_mtap_if(). The `_if` suffix, rather than
prefix, conveys that it's operating on the bpf of the interface, instead
than the interface itself.

Reviewed by: glebius
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D41146

show more ...


# 685dc743 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


Revision tags: release/13.2.0, release/12.4.0
# 068f2c0e 20-Aug-2022 Justin Hibbits <jhibbits@FreeBSD.org>

Mechanically convert dwc(4) to IfAPI

Reviewed by: manu (older)
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37846


12345