LibXenon
Bare-metal Xbox 360 homebrew library
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Enumerations | Variables
dev_usb_rtek.c File Reference
#include "cfe.h"
#include "usbd.h"
#include "usbeth.h"
Include dependency graph for dev_usb_rtek.c:

Go to the source code of this file.

Data Structures

struct  rtek_softc_s
 

Macros

#define USBETH_TRACE(x, y ...)   ((void)0)
 
#define FAIL   -1
 
#define CACHE_ALIGN   32 /* XXX place holder, big enough to now. */
 
#define ALIGN(n, align)   (((n)+((align)-1)) & ~((align)-1))
 
#define usb_dma_alloc(n)   (KMALLOC(ALIGN((n),CACHE_ALIGN),CACHE_ALIGN))
 
#define usb_dma_free(p)   (KFREE(p))
 
#define USBETH_DEBUG   0
 
#define hexdump(src, srclen, rowlen, rows)   ((void)0)
 

Typedefs

typedef struct rtek_softc_s rtek_softc_t
 

Enumerations

enum  { VEN_NONE , LINKSYS_100M }
 

Variables

const cfe_driver_t usbrtekdrv
 
usb_driver_t usbrtek_driver
 

Macro Definition Documentation

◆ ALIGN

#define ALIGN (   n,
  align 
)    (((n)+((align)-1)) & ~((align)-1))

Definition at line 63 of file dev_usb_rtek.c.

◆ CACHE_ALIGN

#define CACHE_ALIGN   32 /* XXX place holder, big enough to now. */

Definition at line 62 of file dev_usb_rtek.c.

◆ FAIL

#define FAIL   -1

Definition at line 60 of file dev_usb_rtek.c.

◆ hexdump

#define hexdump (   src,
  srclen,
  rowlen,
  rows 
)    ((void)0)

Definition at line 94 of file dev_usb_rtek.c.

◆ usb_dma_alloc

#define usb_dma_alloc (   n)    (KMALLOC(ALIGN((n),CACHE_ALIGN),CACHE_ALIGN))

Definition at line 65 of file dev_usb_rtek.c.

◆ usb_dma_free

#define usb_dma_free (   p)    (KFREE(p))

Definition at line 66 of file dev_usb_rtek.c.

◆ USBETH_DEBUG

#define USBETH_DEBUG   0

Definition at line 73 of file dev_usb_rtek.c.

◆ USBETH_TRACE

#define USBETH_TRACE (   x,
  y ... 
)    ((void)0)

Definition at line 57 of file dev_usb_rtek.c.

Typedef Documentation

◆ rtek_softc_t

typedef struct rtek_softc_s rtek_softc_t

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
VEN_NONE 
LINKSYS_100M 

Definition at line 102 of file dev_usb_rtek.c.

Variable Documentation

◆ usbrtek_driver

usb_driver_t usbrtek_driver
Initial value:
=
{
"Ethernet Device",
rtek_attach,
rtek_detach
}

Definition at line 428 of file dev_usb_rtek.c.

◆ usbrtekdrv

const cfe_driver_t usbrtekdrv

Definition at line 331 of file dev_usb_rtek.c.