/home/hillier_g/checkout/most4linux/most-kernel/most-constants.h

Go to the documentation of this file.
00001 /*
00002  *  Copyright(c) Siemens AG, Muenchen, Germany, 2005, 2006, 2007
00003  *                           Bernhard Walle <bernhard.walle@gmx.de>
00004  *                           Gernot Hillier <gernot.hillier@siemens.com>
00005  *
00006  * ----------------------------------------------------------------------------
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License version 2 as 
00009  * published by the Free Software Foundation;
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  * ----------------------------------------------------------------------------
00020  */
00021 #ifndef MOST_CONSTANTS_H
00022 #define MOST_CONSTANTS_H
00023 
00031 /*
00032  * General constants -----------------------------------------------------------
00033  */
00034 
00038 #define PCI_VENDOR_ID_OASIS                         0x121D
00039 
00044 #define PCI_DEVICE_ID_OASIS_MOST_PCI_INTERFACE      0x4711
00045 
00052 #define MOST_DEVICE_NUMBER                          8
00053 
00057 #define MOST_MAX_POLL                               1024
00058 
00062 #define MAX_RETRIES                                 10
00063 
00071 #define MOST_DELAY_INCREMENT                        10
00072 
00076 #define MOST_SYNC_OPENS                             8
00077 
00081 #define NUM_OF_QUADLETS                             (60/4)
00082 
00086 #define STD_MOST_FRAMES_PER_SEC                     44100
00087 
00091 #define MOST_FEATURE_SYNC                           (1 << 0)
00092 
00096 #define MOST_FEATURE_ASYNC                          (1 << 1)
00097 
00101 #define MOST_FEATURE_MASTER                         (1 << 2)
00102 
00106 #define MOST_FEATURE_CTRL                           (1 << 3)
00107 
00108 /*
00109  * Register offset definitions of OS 8604 -------------------------------------
00110  */
00111 
00118 #define MOST_PCI_CMD_REG                (0x00)
00119 
00130 #define MRST                            (1 << 11)
00131 
00141 #define EXEC                            (1 << 10)
00142 
00152 #define CPOP1                           (1 << 9)
00153 
00157 #define CPOP0                           (1 << 8)
00158 
00164 #define CMD_DATA                        0xff
00165 
00171 #define VALUE_DATA                      0xff
00172 
00179 #define MOST_PCI_RST_REG                0x04
00180 
00187 #define MOST_PCI_CTRL_REG               0x08
00188 
00200 #define WREN                            (1 << 3)
00201 
00213 #define RDEN                            (1 << 2)
00214 
00221 #define TXBIGEN                         (1 << 1)
00222 
00230 #define RXBIGEN                         (1 << 0)
00231 
00238 #define MOST_PCI_LOCKSTATUS_REG         (0x0C)
00239 
00246 #define MOST_PCI_INTMASK_REG            (0x10)
00247 
00253 #define IEMLOCK                         (1 << 8)
00254 
00260 #define IEMAINT                         (1 << 7)
00261 
00267 #define IEMINT                          (1 << 6)
00268 
00275 #define IEGP                            (1 << 5)
00276 
00282 #define IESRX                           (1 << 4)
00283 
00289 #define IESTX                           (1 << 3)
00290 
00296 #define IEARX                           (1 << 2)
00297 
00303 #define IEATX                           (1 << 1)
00304 
00310 #define IECPFSM                         (1 << 0)
00311 
00318 #define MOST_PCI_INTSTATUS_REG          (0x14)
00319 
00329 #define ISMAINT                         (1 << 7)
00330 
00340 #define ISMINT                          (1 << 6)
00341 
00346 #define ISGP                            (1 << 5)
00347 
00354 #define ISSRX                           (1 << 4)
00355 
00362 #define ISSTX                           (1 << 3)
00363 
00370 #define ISARX                           (1 << 2)
00371 
00378 #define ISATX                           (1 << 1)
00379 
00387 #define ISCPFSM                         (1 << 0)
00388 
00395 #define MOST_PCI_VERSION_REG            0x18
00396 
00403 #define MOST_PCI_SBC_NPOS_REG           0x1C
00404 
00410 #define MOST_PCI_STXSA_REG              0x20
00411 
00417 #define MOST_PCI_STXPS_REG              0x24
00418 
00424 #define MOST_PCI_STXCTRL_REG            0x28
00425 
00431 #define STXST                           (1 << 1)
00432 
00439 #define STXPP                           (1 << 0)
00440 
00446 #define MOST_PCI_STXCA_REG              0x2C
00447 
00453 #define MOST_PCI_SRXSA_REG              0x30
00454 
00460 #define MOST_PCI_SRXPS_REG              0x34
00461 
00467 #define MOST_PCI_SRXCTRL_REG            0x38
00468 
00475 #define SRXST                           (1 << 3)
00476 
00483 #define SRXPP                           (1 << 2)
00484 
00490 #define MOST_PCI_SRXCA_REG              0x3C
00491 
00497 #define MOST_PCI_ATXSA_REG              0x40
00498 
00502 #define MOST_PCI_RESERVED_0             0x44
00503 
00509 #define MOST_PCI_ARXCTRL_REG            0x48
00510 
00516 #define MOST_PCI_ATXCTRL_REG            0x4C
00517 
00523 #define MOST_PCI_ARXSA_REG              0x50
00524 
00528 #define MOST_PCI_RESERVED_1             0x54
00529 
00533 #define MOST_PCI_RESERVED_2             0x58
00534 
00540 #define MOST_PCI_AARXMA_REG             0x5C
00541 
00547 #define MOST_PCI_ARXMA_REG              0x60
00548 
00554 #define MOST_PCI_ARXMGA_REG             0x64
00555 
00559 #define MOST_PCI_RESERVED_3             0x68
00560 
00566 #define MOST_PCI_TRIG_REG               0x6C
00567 
00573 #define MOST_PCI_DSCTRL_REG             0x70
00574 
00578 #define MOST_PCI_RESERVED_4             0x74
00579 
00583 #define MOST_PCI_RESERVED_5             0x78
00584 
00588 #define DSCTL_EN_ASYNC                  (1 << 11)
00589 
00593 #define DSCTL_EN_SYNC                   (1 << 10)
00594 
00598 #define DSCTL_EN_CTRL                   (1 << 9)
00599 
00603 #define DSCTL_EN_MASTER                 (1 << 8)
00604 
00608 #define DSCTL_CRC_RST                   (1 << 7)
00609 
00613 #define DSCTL_CRC_EN                    (1 << 6)
00614 
00621 #define DSCTL_RD                        (1 << 5)
00622 
00628 #define DSCTL_RD_VAL                    (1 << 4)
00629 
00636 #define DSCTL_WR                        (1 << 3)
00637 
00643 #define DSCTL_WR_VAL                    (1 << 2)
00644 
00651 #define DSCTL_RST                       (1 << 1)
00652 
00659 #define DSCTL_PRE                       (1 << 0)
00660 
00664 #define LICENSE_ADDRESS_HW              0x00
00665 
00669 #define LICENSE_ADDRESS_SW              0x08
00670 
00674 #define LICENSE_ADDRESS_TO              0x10
00675 
00676 /*
00677  * Register offset definitions of OS 8104 ---------------------------------------------------------
00678  */
00679 
00686 #define     MSGC            0x0085                        // Message Control
00687 
00692 #define MOST_PCI_LICENSE_REG            0x74
00693 
00698 #define MOST_PCI_LICCOMP_REG            0x78
00699 
00705 #define MOST_PCI_ISP_REG                0x7C
00706 
00712 #define MOST_PCI_I2C_REG                0x80
00713 
00719 #define MOST_PCI_I2S_REG                0x84
00720 
00724 #define MOST_PCI_RESERVED_6             0x88
00725 
00729 #define MOST_PCI_RESERVED_7             0x8C
00730 
00736 #define MOST_PCI_TSCNTR_REG             0x90
00737 
00743 #define MOST_PCI_FMASK_REG              0xBC
00744 
00748 #define MOST_PCI_RESERVED_8             0xFF
00749 
00750 /*
00751  * Register offset definitions of OS 8104 -------------------------------------
00752  */
00753 
00758 #define MOST_IF_PAGE                    0xFF
00759 
00760 /*
00761  * Misc constants -------------------------------------------------------------
00762  */
00763 
00764 
00768 #define MOST_PCI_FW_NEW_PACKET_LEN_POS  (1 << 0)
00769 
00773 #define MOST_PCI_FW_FOT_STATUS          (1 << 1)
00774 
00778 #define MOST_PCI_FW_SEC_ASYNC_ADDR      (1 << 2)
00779 
00783 #define MOST_PCI_FW_CHANGE_3DB          (1 << 3)
00784 
00788 #define MOST_PCI_FW_RX_TX_BIG_ENABLE    (1 << 4)
00789 
00793 #define MOST_PCI_FW_CHANGE_FREQUENCY    (1 << 5)
00794 
00799 #define MOST_8104_SBC_REG               0x0096
00800 
00804 #define MOST_MINOR_IDS                  255
00805 
00806 #endif /* MOST_CONSTANTS_H */
00807 
00808 
00809 /* vim: set ts=4 et sw=4: */

Generated on Fri Mar 9 14:48:57 2007 for MOST Linux Drivers (Linux and RTAI) by  doxygen 1.5.0