Main Page | Modules | Namespace List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

usbservices.c File Reference

#include "plx\NcCommon.h"
#include <services/services.h>

Defines

#define NUM_ENDPOINTS   3
#define USB_MAX_TRANSFER_SIZE   (512*2)
#define USB_IN_ENDPOINT   1
#define USB_OUT_ENDPOINT   2
#define NUM_INTERFACES   1
#define USB_INTERFACE_NUM   0
#define VID_ADITOOLSUSB   0x064B
#define PID_EZEXTENDERUSB   0x2187
#define DEVICE_RELEASE   0x0100
#define CONFIG_ATTRIBUTES
#define INDEX_MANUFACTURER   1
#define INDEX_PRODUCT   2

Typedefs

typedef _USB_SERVICES_CONFIGURATION USB_SERVICES_CONFIGURATION
typedef _USB_SERVICES_CONFIGURATIONPUSB_SERVICES_CONFIGURATION

Functions

NCSTATUS USB_Services_EndpointEventHandler (PNC_ENDPOINT_OBJECT Endpoint)
NCSTATUS USB_Services_EndpointZeroEventHandler (PNC_ENDPOINT_OBJECT Endpoint)
void Netchip_Complete (PNC_ENDPOINT_OBJECT Endpoint)
NCSTATUS USB_Services_SetConfigurationHandler (PNC_DEVICE_OBJECT DeviceObject)
STATIC void USB_Services_CleanupTransfer ()
NCSTATUS USB_Services_DeviceRequestHandler (PNC_DEVICE_OBJECT DeviceObject)
NCSTATUS USB_Services_DeviceEventHandler (PNC_DEVICE_OBJECT DeviceObject)
NCSTATUS USB_Services_OneTimeInit ()

Variables

ADI_DMA_2D_TRANSFER DMASource
ADI_DMA_2D_TRANSFER DMADestination
BYTE USBTxSrcBuffer [USB_MAX_TRANSFER_SIZE]
BYTE USBRxSrcBuffer [USB_MAX_TRANSFER_SIZE]
USB_DEVICE_INTERFACE UsbDeviceInterface
int g_bDeviceConfigured
int g_bDeviceNotReady
CHAR USB_SERVICES_LANGID [] = {0x04, 0x03, 0x09, 0x04}
CHAR USB_SERVICES_ASCII_PRODUCT [] = "BF533 USB-LAN EZ-EXTENDER AUDIO CLASS USB"
CHAR USB_SERVICES_ASCII_MANUFACTURER [] = "Bluetechnix"
USB_DEVICE_DESCRIPTOR USB_Services_DeviceDescriptor
USB_DEVICE_QUALIFIER_DESCRIPTOR USB_Services_DeviceQualifierDescriptor
UCHAR USB_Services_HS_Configuration []
UCHAR USB_Services_FS_Configuration []
PNC_ENDPOINT_OBJECT pEndpointObjects [NUM_ENDPOINTS+1]
NC_DEVICE_OBJECT USB_Services_DeviceObject
NC_TRANSFER_OBJECT globalInTransferObject
NC_TRANSFER_OBJECT globalOutTransferObject

Define Documentation

#define CONFIG_ATTRIBUTES
 

Value:

((1<<7) | \
                                 (1<<CONFIG_SELF_POWERED))

#define DEVICE_RELEASE   0x0100
 

#define INDEX_MANUFACTURER   1
 

#define INDEX_PRODUCT   2
 

#define NUM_ENDPOINTS   3
 

#define NUM_INTERFACES   1
 

#define PID_EZEXTENDERUSB   0x2187
 

#define USB_IN_ENDPOINT   1
 

#define USB_INTERFACE_NUM   0
 

#define USB_MAX_TRANSFER_SIZE   (512*2)
 

#define USB_OUT_ENDPOINT   2
 

#define VID_ADITOOLSUSB   0x064B
 


Typedef Documentation

typedef struct _USB_SERVICES_CONFIGURATION * PUSB_SERVICES_CONFIGURATION
 

typedef struct _USB_SERVICES_CONFIGURATION USB_SERVICES_CONFIGURATION
 


Function Documentation

void Netchip_Complete PNC_ENDPOINT_OBJECT  Endpoint  ) 
 

STATIC void USB_Services_CleanupTransfer  ) 
 

NCSTATUS USB_Services_DeviceEventHandler PNC_DEVICE_OBJECT  DeviceObject  ) 
 

NCSTATUS USB_Services_DeviceRequestHandler PNC_DEVICE_OBJECT  DeviceObject  ) 
 

NCSTATUS USB_Services_EndpointEventHandler PNC_ENDPOINT_OBJECT  Endpoint  ) 
 

NCSTATUS USB_Services_EndpointZeroEventHandler PNC_ENDPOINT_OBJECT  Endpoint  ) 
 

NCSTATUS USB_Services_OneTimeInit  ) 
 

NCSTATUS USB_Services_SetConfigurationHandler PNC_DEVICE_OBJECT  DeviceObject  ) 
 


Variable Documentation

ADI_DMA_2D_TRANSFER DMADestination
 

ADI_DMA_2D_TRANSFER DMASource
 

int g_bDeviceConfigured
 

int g_bDeviceNotReady
 

NC_TRANSFER_OBJECT globalInTransferObject
 

NC_TRANSFER_OBJECT globalOutTransferObject
 

PNC_ENDPOINT_OBJECT pEndpointObjects[NUM_ENDPOINTS+1]
 

CHAR USB_SERVICES_ASCII_MANUFACTURER[] = "Bluetechnix"
 

CHAR USB_SERVICES_ASCII_PRODUCT[] = "BF533 USB-LAN EZ-EXTENDER AUDIO CLASS USB"
 

USB_DEVICE_DESCRIPTOR USB_Services_DeviceDescriptor
 

Initial value:

{   
        sizeof(USB_DEVICE_DESCRIPTOR),  
        DEVICE_DESC,                    
        NC_LOBYTE(USBSPEC),             
                                    
    NC_HIBYTE(USBSPEC),             
                                    
        0x00,                           
        0x00,                           
        0x00,                           
        EP0_MAX_PACKET_SIZE,            
        NC_LOBYTE(VID_ADITOOLSUSB),             
    NC_HIBYTE(VID_ADITOOLSUSB),         
        NC_LOBYTE(PID_EZEXTENDERUSB),   
    NC_HIBYTE(PID_EZEXTENDERUSB),       
        NC_LOBYTE(DEVICE_RELEASE),      
    NC_HIBYTE(DEVICE_RELEASE),      
        INDEX_MANUFACTURER,             
                                    
    INDEX_PRODUCT,                  
                                    
    0,                              
                                    
    0x01                            
}

NC_DEVICE_OBJECT USB_Services_DeviceObject
 

USB_DEVICE_QUALIFIER_DESCRIPTOR USB_Services_DeviceQualifierDescriptor
 

Initial value:

UCHAR USB_Services_FS_Configuration[]
 

UCHAR USB_Services_HS_Configuration[]
 

CHAR USB_SERVICES_LANGID[] = {0x04, 0x03, 0x09, 0x04}
 

USB_DEVICE_INTERFACE UsbDeviceInterface
 

BYTE USBRxSrcBuffer[USB_MAX_TRANSFER_SIZE]
 

BYTE USBTxSrcBuffer[USB_MAX_TRANSFER_SIZE]
 


Generated on Thu Mar 2 16:11:30 2006 for VDK Blacksheep by  doxygen 1.4.1