RetroArch
uip_netif.h
Go to the documentation of this file.
1 #ifndef __UIP_NETIF_H__
2 #define __UIP_NETIF_H__
3 
4 #include "uip.h"
5 
6 #define UIP_NETIF_MAX_HWADDR_LEN 6U
7 
14 #define UIP_NETIF_FLAG_UP 0x1U
15 
16 #define UIP_NETIF_FLAG_BROADCAST 0x2U
17 
18 #define UIP_NETIF_FLAG_POINTTOPOINT 0x4U
19 
20 #define UIP_NETIF_FLAG_DHCP 0x08U
21 
23 #define UIP_NETIF_FLAG_LINK_UP 0x10U
24 
25 struct uip_netif;
26 struct uip_pbuf;
27 struct uip_ip_addr;
28 
29 struct uip_netif {
30  struct uip_netif *next;
31 
34  struct uip_ip_addr gw;
35 
36  s8_t (*input)(struct uip_pbuf *p,struct uip_netif *inp);
37  s8_t (*output)(struct uip_netif *netif,struct uip_pbuf *p,struct uip_ip_addr *ipaddr);
38  s8_t (*linkoutput)(struct uip_netif *netif,struct uip_pbuf *p);
39 
40  void *state;
41 
44 
47 
48  s8_t name[2];
50 };
51 
52 extern struct uip_netif *uip_netif_list;
53 extern struct uip_netif *uip_netif_default;
54 
55 void uip_netif_init();
56 void uip_netif_setup(struct uip_netif *netif);
57 void uip_netif_setaddr(struct uip_netif *netif,struct uip_ip_addr *ipaddr,struct uip_ip_addr *netmask,struct uip_ip_addr *gw);
58 void uip_netif_setipaddr(struct uip_netif *netif,struct uip_ip_addr *ipaddr);
60 void uip_netif_setgw(struct uip_netif *netif,struct uip_ip_addr *gw);
63 struct uip_netif* uip_netif_add(struct uip_netif *netif,struct uip_ip_addr *ipaddr,struct uip_ip_addr *netmask,struct uip_ip_addr *gw,void *state,s8_t (*init)(struct uip_netif *netif),s8_t (*input)(struct uip_pbuf *p,struct uip_netif *netif));
64 
65 #endif
Definition: uip_ip.h:82
struct uip_netif * uip_netif_list
Definition: uip_netif.c:31
GLuint const GLchar * name
Definition: glext.h:6671
u16_t mtu
Definition: uip_netif.h:45
s8 s8_t
Definition: cc.h:44
Definition: ip_addr.h:41
void uip_netif_setup(struct uip_netif *netif)
Definition: uip_netif.c:39
Definition: uip_pbuf.h:27
u8_t num
Definition: uip_netif.h:49
s8_t(* output)(struct uip_netif *netif, struct uip_pbuf *p, struct uip_ip_addr *ipaddr)
Definition: uip_netif.h:37
struct uip_ip_addr gw
Definition: uip_netif.h:34
Definition: netif.h:72
GLenum GLenum GLenum input
Definition: glext.h:9938
struct uip_netif * uip_netif_default
Definition: uip_netif.c:32
#define UIP_NETIF_MAX_HWADDR_LEN
Definition: uip_netif.h:6
void uip_netif_setaddr(struct uip_netif *netif, struct uip_ip_addr *ipaddr, struct uip_ip_addr *netmask, struct uip_ip_addr *gw)
Definition: uip_netif.c:69
struct uip_netif * next
Definition: uip_netif.h:30
u8_t hwaddr[UIP_NETIF_MAX_HWADDR_LEN]
Definition: uip_netif.h:43
struct uip_ip_addr netmask
Definition: uip_netif.h:33
static uint64_t state[MAX_PADS]
Definition: xenon360_input.c:33
static struct uip_netif netif
Definition: tcpip.c:48
void uip_netif_setdefault(struct uip_netif *netif)
Definition: uip_netif.c:112
GLfloat GLfloat p
Definition: glext.h:9809
void * state
Definition: uip_netif.h:40
u8 u8_t
Definition: cc.h:43
s8_t(* linkoutput)(struct uip_netif *netif, struct uip_pbuf *p)
Definition: uip_netif.h:38
void uip_netif_setnetmask(struct uip_netif *netif, struct uip_ip_addr *netmask)
Definition: uip_netif.c:102
u8_t flags
Definition: uip_netif.h:46
u8_t hwaddr_len
Definition: uip_netif.h:42
void uip_netif_init()
Definition: uip_netif.c:34
struct uip_netif * uip_netif_add(struct uip_netif *netif, struct uip_ip_addr *ipaddr, struct uip_ip_addr *netmask, struct uip_ip_addr *gw, void *state, s8_t(*init)(struct uip_netif *netif), s8_t(*input)(struct uip_pbuf *p, struct uip_netif *netif))
Definition: uip_netif.c:49
void uip_netif_setipaddr(struct uip_netif *netif, struct uip_ip_addr *ipaddr)
Definition: uip_netif.c:76
u8_t uip_netif_isup(struct uip_netif *netif)
Definition: uip_netif.c:44
void uip_netif_setgw(struct uip_netif *netif, struct uip_ip_addr *gw)
Definition: uip_netif.c:107
Definition: uip_netif.h:29
u16 u16_t
Definition: cc.h:45
set set set set set set set macro pixldst1 abits if abits op else op endif endm macro pixldst2 abits if abits op else op endif endm macro pixldst4 abits if abits op else op endif endm macro pixldst0 abits op endm macro pixldst3 mem_operand op endm macro pixldst30 mem_operand op endm macro pixldst abits if abits elseif abits elseif abits elseif abits elseif abits pixldst0 abits else pixldst0 abits pixldst0 abits pixldst0 abits pixldst0 abits endif elseif abits else pixldst0 abits pixldst0 abits endif elseif abits else error unsupported bpp *numpix else pixst endif endm macro pixld1_s mem_operand if asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl elseif asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl else error unsupported endif endm macro pixld2_s mem_operand if mov asr add asl add asl mov asr sub UNIT_X add asl mov asr add asl add asl mov asr add UNIT_X add asl else pixld1_s mem_operand pixld1_s mem_operand endif endm macro pixld0_s mem_operand if asr adds SRC_WIDTH_FIXED bpl add asl elseif asr adds SRC_WIDTH_FIXED bpl add asl endif endm macro pixld_s_internal mem_operand if mem_operand pixld2_s mem_operand pixdeinterleave basereg elseif mem_operand elseif mem_operand elseif mem_operand elseif mem_operand pixld0_s mem_operand else pixld0_s mem_operand pixld0_s mem_operand pixld0_s mem_operand pixld0_s mem_operand endif elseif mem_operand else pixld0_s mem_operand pixld0_s mem_operand endif elseif mem_operand else error unsupported mem_operand if bpp mem_operand endif endm macro vuzp8 reg2 vuzp d d &reg2 endm macro vzip8 reg2 vzip d d &reg2 endm macro pixdeinterleave basereg basereg basereg basereg basereg endif endm macro pixinterleave basereg basereg basereg basereg basereg endif endm macro PF boost_increment endif if endif PF tst PF addne PF subne PF cmp ORIG_W if endif if endif if endif PF subge ORIG_W PF subges if endif if endif if endif endif endm macro cache_preload_simple endif if dst_r_bpp pld [DST_R, #(PREFETCH_DISTANCE_SIMPLE *dst_r_bpp/8)] endif if mask_bpp pld init[MASK, #(PREFETCH_DISTANCE_SIMPLE *mask_bpp/8)] endif endif endm macro fetch_mask_pixblock pixld mask_basereg pixblock_size MASK endm macro ensure_destination_ptr_alignment process_pixblock_tail_head if beq irp local skip1 beq endif SRC MASK if dst_r_bpp DST_R else add endif PF add sub src_basereg pixdeinterleave mask_basereg pixdeinterleave dst_r_basereg process_pixblock_head pixblock_size cache_preload_simple process_pixblock_tail pixinterleave dst_w_basereg irp beq endif process_pixblock_tail_head tst beq irp if pixblock_size chunk_size tst beq pixld_src SRC pixld MASK if DST_R else pixld DST_R endif if src_basereg pixdeinterleave mask_basereg pixdeinterleave dst_r_basereg process_pixblock_head if pixblock_size cache_preload_simple endif process_pixblock_tail pixinterleave dst_w_basereg irp if pixblock_size chunk_size tst beq if DST_W else pixst DST_W else mov ORIG_W endif add lsl if lsl endif if lsl endif lsl endif lsl endif lsl endif subs mov DST_W if regs_shortage str endif bge start_of_loop_label endm macro generate_composite_function
Definition: pixman-arm-neon-asm.h:600