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 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * idprom.h: Macros and defines for idprom routines
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright (C) 1995,1996 David S. Miller (davem@caip.rutgers.edu)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #ifndef _SPARC_IDPROM_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #define _SPARC_IDPROM_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) struct idprom {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 	u8		id_format;	/* Format identifier (always 0x01) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	u8		id_machtype;	/* Machine type */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	u8		id_ethaddr[6];	/* Hardware ethernet address */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	s32		id_date;	/* Date of manufacture */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	u32		id_sernum:24;	/* Unique serial number */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	u8		id_cksum;	/* Checksum - xor of the data bytes */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	u8		reserved[16];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) extern struct idprom *idprom;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) void idprom_init(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #endif /* !(_SPARC_IDPROM_H) */