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)  * IPWireless 3G PCMCIA Network Driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Original code
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  *   by Stephen Blackheath <stephen@blacksapphire.com>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  *      Ben Martel <benm@symmetric.co.nz>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  * Copyrighted as follows:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)  *   Copyright (C) 2004 by Symmetric Systems Ltd (NZ)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)  * Various driver changes and rewrites, port to new kernels
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)  *   Copyright (C) 2006-2007 Jiri Kosina
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)  * Misc code cleanups and updates
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)  *   Copyright (C) 2007 David Sterba
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #ifndef _IPWIRELESS_CS_HARDWARE_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #define _IPWIRELESS_CS_HARDWARE_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #include <linux/sched.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #include <linux/interrupt.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #define IPW_CONTROL_LINE_CTS 0x0001
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define IPW_CONTROL_LINE_DCD 0x0002
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #define IPW_CONTROL_LINE_DSR 0x0004
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #define IPW_CONTROL_LINE_RI  0x0008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #define IPW_CONTROL_LINE_DTR 0x0010
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #define IPW_CONTROL_LINE_RTS 0x0020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) struct ipw_hardware;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) struct ipw_network;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) struct ipw_hardware *ipwireless_hardware_create(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) void ipwireless_hardware_free(struct ipw_hardware *hw);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) irqreturn_t ipwireless_interrupt(int irq, void *dev_id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) int ipwireless_set_DTR(struct ipw_hardware *hw, unsigned int channel_idx,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 		int state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) int ipwireless_set_RTS(struct ipw_hardware *hw, unsigned int channel_idx,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 		int state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) int ipwireless_send_packet(struct ipw_hardware *hw,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 			    unsigned int channel_idx,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 			    const unsigned char *data,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 			    unsigned int length,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 			    void (*packet_sent_callback) (void *cb,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 							  unsigned int length),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 			    void *sent_cb_data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) void ipwireless_associate_network(struct ipw_hardware *hw,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 		struct ipw_network *net);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) void ipwireless_stop_interrupts(struct ipw_hardware *hw);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) void ipwireless_init_hardware_v1(struct ipw_hardware *hw,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) 				 unsigned int base_port,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) 				 void __iomem *attr_memory,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) 				 void __iomem *common_memory,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) 				 int is_v2_card,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) 				 void (*reboot_cb) (void *data),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) 				 void *reboot_cb_data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) void ipwireless_init_hardware_v2_v3(struct ipw_hardware *hw);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) void ipwireless_sleep(unsigned int tenths);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) #endif