Import the SPI-NOR framework from linux kernel v3.19. Signed-off-by: Enrico Jorns <ejo@pengutronix.de> Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
28 lines
625 B
C
28 lines
625 B
C
/*
|
|
* Device tables which are exported to userspace via
|
|
* scripts/mod/file2alias.c. You must keep that file in sync with this
|
|
* header.
|
|
*/
|
|
|
|
#ifndef LINUX_MOD_DEVICETABLE_H
|
|
#define LINUX_MOD_DEVICETABLE_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
#define PCI_ANY_ID (~0)
|
|
|
|
struct pci_device_id {
|
|
__u32 vendor, device; /* Vendor and device ID or PCI_ANY_ID*/
|
|
__u32 subvendor, subdevice; /* Subsystem ID's or PCI_ANY_ID */
|
|
__u32 class, class_mask; /* (class,subclass,prog-if) triplet */
|
|
};
|
|
|
|
#define SPI_NAME_SIZE 32
|
|
|
|
struct spi_device_id {
|
|
char name[SPI_NAME_SIZE];
|
|
unsigned long driver_data;
|
|
};
|
|
|
|
#endif /* LINUX_MOD_DEVICETABLE_H */
|