X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=target_firmware%2Fmagpie_fw_dev%2Ftarget%2Finc%2Fk2%2Fusb_pre.h;fp=target_firmware%2Fmagpie_fw_dev%2Ftarget%2Finc%2Fk2%2Fusb_pre.h;h=0000000000000000000000000000000000000000;hb=36255ed229020810203c7482a70ba2c0d6b2ea99;hp=d3ae42b6e9a217e96921ff4b998b8a83eaabbbfa;hpb=ff66305a044be28464fa0969ea2d605bb268d478;p=open-ath9k-htc-firmware.git diff --git a/target_firmware/magpie_fw_dev/target/inc/k2/usb_pre.h b/target_firmware/magpie_fw_dev/target/inc/k2/usb_pre.h deleted file mode 100755 index d3ae42b..0000000 --- a/target_firmware/magpie_fw_dev/target/inc/k2/usb_pre.h +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (c) 2013 Qualcomm Atheros, Inc. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted (subject to the limitations in the - * disclaimer below) provided that the following conditions are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Qualcomm Atheros nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE - * GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT - * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR - * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE - * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN - * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ -#ifndef __USB_USER_PRE_H -#define __USB_USER_PRE_H - -#define FUSB200_MAX_EP 10 // 1..10 -#define FUSB200_MAX_FIFO 10 // 0.. 9 -#define EP0MAXPACKETSIZE 0x40 -// #define EP0FIFOSIZE 64 // EP0_FIFO -//JWEI 2003/04/29 -//#define EP0MAXPACKETSIZE 0x08 - -// Max. Packet Size define -#define MX_PA_SZ_8 8 -#define MX_PA_SZ_16 16 -#define MX_PA_SZ_32 32 -#define MX_PA_SZ_64 64 -#define MX_PA_SZ_128 128 -#define MX_PA_SZ_256 256 -#define MX_PA_SZ_512 512 -#define MX_PA_SZ_1024 1024 - -#define MASK_F0 0xF0 - -// Block Size define -#define BLK512BYTE 1 -#define BLK1024BYTE 2 - -#define BLK64BYTE 1 -#define BLK128BYTE 2 - -// Block toggle number define -#define SINGLE_BLK 1 -#define DOUBLE_BLK 2 -#define TRIBLE_BLK 3 - -// Endpoint transfer type -#define TF_TYPE_ISOCHRONOUS 1 -#define TF_TYPE_BULK 2 -#define TF_TYPE_INTERRUPT 3 - -// Endpoint or FIFO direction define -#define DIRECTION_IN 0 -#define DIRECTION_OUT 1 - -// FIFO number define -#define FIFO0 0x0 -#define FIFO1 0x1 -#define FIFO2 0x2 -#define FIFO3 0x3 -#define FIFO4 0x4 -#define FIFO5 0x5 -#define FIFO6 0x6 -#define FIFO7 0x7 -#define FIFO8 0x8 -#define FIFO9 0x9 -#define FIFO10 10 -#define FIFO11 11 -#define FIFO12 12 -#define FIFO13 13 -#define FIFO14 14 -#define FIFO15 15 - -// Descriptor Table uses the following parameters : fixed -#define DEVICE_LENGTH 0x12 -#define CONFIG_LENGTH 0x09 -#define INTERFACE_LENGTH 0x09 -#define EP_LENGTH 0x07 -#define DEVICE_QUALIFIER_LENGTH 0x0A - -//JWEI 2003/04/29 -// Endpoint number define -#define EP0 0 -#define EP1 1 -#define EP2 2 -#define EP3 3 -#define EP4 4 -#define EP5 5 -#define EP6 6 -#define EP7 7 -#define EP8 8 -#define EP9 9 -#define EP10 10 -#define EP11 11 -#define EP12 12 -#define EP13 13 -#define EP14 14 -#define EP15 15 - -#define STRING_00_LENGTH 0x04 -#define STRING_10_LENGTH 0x0c -#define STRING_20_LENGTH 0x18 -#define STRING_30_LENGTH 0x18 -#define STRING_40_LENGTH 0x04 -#define STRING_50_LENGTH 0x04 -#define STRING_60_LENGTH 0x04 -#define STRING_70_LENGTH 0x04 -#define STRING_80_LENGTH 0x04 -#define STRING_90_LENGTH 0x00 - -#endif