mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
This patch adds a platform device driver that supports the OpenCores 10/100 Mbps Ethernet MAC. The driver expects three resources: one IORESOURCE_MEM resource defines the memory region for the core's memory-mapped registers while a second IORESOURCE_MEM resource defines the network packet buffer space. The third resource, of type IORESOURCE_IRQ, associates an interrupt with the driver. Signed-off-by: Thierry Reding <[email protected]> Acked-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
23 lines
502 B
C
23 lines
502 B
C
/*
|
|
* linux/include/net/ethoc.h
|
|
*
|
|
* Copyright (C) 2008-2009 Avionic Design GmbH
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* Written by Thierry Reding <[email protected]>
|
|
*/
|
|
|
|
#ifndef LINUX_NET_ETHOC_H
|
|
#define LINUX_NET_ETHOC_H 1
|
|
|
|
struct ethoc_platform_data {
|
|
u8 hwaddr[IFHWADDRLEN];
|
|
s8 phy_id;
|
|
};
|
|
|
|
#endif /* !LINUX_NET_ETHOC_H */
|
|
|