1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) 2022 Microchip Technology Inc. */
3 
4 #ifndef _GPIO_PCI1XXXX_H
5 #define _GPIO_PCI1XXXX_H
6 
7 #include <linux/spinlock.h>
8 #include <linux/mutex.h>
9 #include <linux/kthread.h>
10 #include <linux/types.h>
11 #include <linux/auxiliary_bus.h>
12 
13 /* Perform operations like variable length write, read and write with read back for OTP / EEPROM
14  * Perform bit mode write in OTP
15  */
16 
17 struct gp_aux_data_type {
18 	int irq_num;
19 	resource_size_t region_start;
20 	resource_size_t region_length;
21 };
22 
23 struct auxiliary_device_wrapper {
24 	struct auxiliary_device aux_dev;
25 	struct gp_aux_data_type gp_aux_data;
26 };
27 
28 #endif
29