Loading...
Searching...
No Matches
greth_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Matvii Ivashchenko
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
20
21#include "greth.h"
22#include "board.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
34#ifndef GRETH_PARAM_BASE
35# define GRETH_PARAM_BASE (0xff984000UL)
36#endif
37
38#ifndef GRETH_PARAM_IRQ
39# define GRETH_PARAM_IRQ (5U)
40#endif
41
42#ifndef GRETH_PARAM_MAC
44# define GRETH_PARAM_MAC { 0x02, 0x00, 0x00, 0x00, 0x00, 0x01 }
45#endif
46
47#ifndef GRETH_PARAMS
49# define GRETH_PARAMS { .base_addr = GRETH_PARAM_BASE, \
50 .irq = GRETH_PARAM_IRQ, \
51 .mac = GRETH_PARAM_MAC }
52#endif
54
58static const greth_params_t greth_params[] = {
60};
61
62#ifdef __cplusplus
63}
64#endif
65
Interface definitions for the GRETH Ethernet driver.
#define GRETH_PARAMS
Driver initialization parameter set.
static const greth_params_t greth_params[]
GRETH device configuration table.
GRETH driver parameters (board-level configuration)
Definition greth.h:97