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

Go to the source code of this file.

Data Structures

struct  peg_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 peg_softc_s peg_softc_t
 

Enumerations

enum  { PEGASUS , PEGASUS_II }
 
enum  {
  VEN_NONE , _3_COM , LINKSYS , LINKSYS_10 ,
  LINKSYS_100 , LINKSYS_100M
}
 

Variables

const cfe_driver_t usbpegdrv
 
usb_driver_t usbpeg_driver
 

Macro Definition Documentation

◆ ALIGN

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

Definition at line 63 of file dev_usb_pegasus.c.

◆ CACHE_ALIGN

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

Definition at line 62 of file dev_usb_pegasus.c.

◆ FAIL

#define FAIL   -1

Definition at line 60 of file dev_usb_pegasus.c.

◆ hexdump

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

Definition at line 94 of file dev_usb_pegasus.c.

◆ usb_dma_alloc

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

Definition at line 65 of file dev_usb_pegasus.c.

◆ usb_dma_free

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

Definition at line 66 of file dev_usb_pegasus.c.

◆ USBETH_DEBUG

#define USBETH_DEBUG   0

Definition at line 73 of file dev_usb_pegasus.c.

◆ USBETH_TRACE

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

Definition at line 57 of file dev_usb_pegasus.c.

Typedef Documentation

◆ peg_softc_t

typedef struct peg_softc_s peg_softc_t

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PEGASUS 
PEGASUS_II 

Definition at line 102 of file dev_usb_pegasus.c.

◆ anonymous enum

anonymous enum
Enumerator
VEN_NONE 
_3_COM 
LINKSYS 
LINKSYS_10 
LINKSYS_100 
LINKSYS_100M 

Definition at line 103 of file dev_usb_pegasus.c.

Variable Documentation

◆ usbpeg_driver

usb_driver_t usbpeg_driver
Initial value:
=
{
"Ethernet Device",
peg_attach,
peg_detach
}

Definition at line 489 of file dev_usb_pegasus.c.

◆ usbpegdrv

const cfe_driver_t usbpegdrv

Definition at line 392 of file dev_usb_pegasus.c.