Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-or-later */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Ethernet driver for the WIZnet W5100 chip.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright (C) 2006-2008 WIZnet Co.,Ltd.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * Copyright (C) 2012 Mike Sinkovsky <msink@permonline.ru>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) enum {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 	W5100,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 	W5200,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	W5500,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) struct w5100_ops {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	bool may_sleep;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	int chip_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	int (*read)(struct net_device *ndev, u32 addr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	int (*write)(struct net_device *ndev, u32 addr, u8 data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	int (*read16)(struct net_device *ndev, u32 addr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	int (*write16)(struct net_device *ndev, u32 addr, u16 data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	int (*readbulk)(struct net_device *ndev, u32 addr, u8 *buf, int len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	int (*writebulk)(struct net_device *ndev, u32 addr, const u8 *buf,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 			 int len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	int (*reset)(struct net_device *ndev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	int (*init)(struct net_device *ndev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) void *w5100_ops_priv(const struct net_device *ndev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) int w5100_probe(struct device *dev, const struct w5100_ops *ops,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 		int sizeof_ops_priv, const void *mac_addr, int irq,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 		int link_gpio);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) int w5100_remove(struct device *dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) extern const struct dev_pm_ops w5100_pm_ops;