vxworks...... - VxWorks

This is a discussion on vxworks...... - VxWorks ; can we make host & target server on the same pc.........

+ Reply to Thread
Results 1 to 6 of 6

Thread: vxworks......

  1. vxworks......

    can we make host & target server on the same pc......


  2. Re: vxworks......

    Certainly. If you use vxSim, you can make the host, target server, and
    target all the same pc.

    Larry
    ravi wrote:
    > can we make host & target server on the same pc......



  3. Re: vxworks......


    LarryC wrote:
    > Certainly. If you use vxSim, you can make the host, target server, and
    > target all the same pc.
    >
    > Larry
    > ravi wrote:
    > > can we make host & target server on the same pc......


    i make one system in a ethernet lan to be host & also target server is
    on this machine,also on another machine i boot it with floppy disk to
    make it target.....
    i make some changes in config.h .
    then i boot target it boots properly i also get vxworks prompt.
    then i launch target server ... i will get
    Connecting to target agent...
    tgtsvr (tgt@hddlntd2403222): Wed Nov 01 18:45:32 2006
    Error: rpccore backend client Timed out
    failed.


    please give me some suggestions....
    i also try ping at target shell but it gives ...
    ping undefined symbol...


  4. Re: vxworks......

    Hi:

    On the tgt, are you starting the net stack ok? If you are booting from
    FD, you'll need to specify you netDrv in the Other: boot param.

    Can you ping the target from the host? If that work, but the target
    server connection fails (and you've checked the obvious like the
    correct WDB comm methods, IP addresses, etc), then try getting your
    Host registry set up remotely - Tornado,, the tool->Options-> Registry.
    Choose "remote" and put in the IP address of the HOST pc in there.
    That usually works for me.

    Good luck,
    Larry
    ravi wrote:
    > LarryC wrote:
    > > Certainly. If you use vxSim, you can make the host, target server, and
    > > target all the same pc.
    > >
    > > Larry
    > > ravi wrote:
    > > > can we make host & target server on the same pc......

    >
    > i make one system in a ethernet lan to be host & also target server is
    > on this machine,also on another machine i boot it with floppy disk to
    > make it target.....
    > i make some changes in config.h .
    > then i boot target it boots properly i also get vxworks prompt.
    > then i launch target server ... i will get
    > Connecting to target agent...
    > tgtsvr (tgt@hddlntd2403222): Wed Nov 01 18:45:32 2006
    > Error: rpccore backend client Timed out
    > failed.
    >
    >
    > please give me some suggestions....
    > i also try ping at target shell but it gives ...
    > ping undefined symbol...



  5. Re: vxworks......


    LarryC wrote:
    > Hi:
    >
    > On the tgt, are you starting the net stack ok? If you are booting from
    > FD, you'll need to specify you netDrv in the Other: boot param.
    >
    > Can you ping the target from the host? If that work, but the target
    > server connection fails (and you've checked the obvious like the
    > correct WDB comm methods, IP addresses, etc), then try getting your
    > Host registry set up remotely - Tornado,, the tool->Options-> Registry.
    > Choose "remote" and put in the IP address of the HOST pc in there.
    > That usually works for me.
    >
    > Good luck,
    > Larry
    > ravi wrote:
    > > LarryC wrote:
    > > > Certainly. If you use vxSim, you can make the host, target server, and
    > > > target all the same pc.
    > > >
    > > > Larry
    > > > ravi wrote:
    > > > > can we make host & target server on the same pc......

    > >
    > > i make one system in a ethernet lan to be host & also target server is
    > > on this machine,also on another machine i boot it with floppy disk to
    > > make it target.....
    > > i make some changes in config.h .
    > > then i boot target it boots properly i also get vxworks prompt.
    > > then i launch target server ... i will get
    > > Connecting to target agent...
    > > tgtsvr (tgt@hddlntd2403222): Wed Nov 01 18:45:32 2006
    > > Error: rpccore backend client Timed out
    > > failed.
    > >
    > >
    > > please give me some suggestions....
    > > i also try ping at target shell but it gives ...
    > > ping undefined symbol...



    hi....
    I do not knowOn the tgt, how to starting the net stack , also it is
    not starting i think ,please give procedure to start net stack.
    also i do not understand what you are saying in "If you are booting
    fromFD, you'll need to specify you netDrv in the Other: boot param".
    also i can't able to ping target from host.i also change registry to
    remote but it does not work....
    ok..
    i will be sending you the config.h file i am using bsp pc pentium.....&
    file VxWorks.st....
    In bootable floppy drive i have two files one is bootrom.sys and
    vxWorks.st.

    file config.h is....


    #ifndef INCconfigh
    #define INCconfigh

    /* BSP version/revision identification, before configAll.h */

    #define BSP_VER_1_1 1 /* 1.2 is backward compatible with 1.1 */
    #define BSP_VER_1_2 1
    #define BSP_VERSION "1.2"
    #define BSP_REV "/0" /* 0 for first revision */

    #include "configAll.h"
    #include "pc.h"
    #define INCLUDE_NETWORK
    #define INCLUDE_BOOT_LINE_INIT
    #define INCLUDE_BSD_SOCKET
    #define INCLUDE_DOMAIN_INIT
    #define INCLUDE_END
    #define INCLUDE_ETHERNET
    #define INCLUDE_GTF
    #define INCLUDE_GTF_TIMER_START
    #define INCLUDE_ICMP
    #define INCLUDE_NFS
    #define INCLUDE_INETLIB
    #define INCLUDE_IP6ATTACH /* (omit in an IPv4-only stack)*/
    #define INCLUDE_IPATTACH
    #define INCLUDE_IPPROTO
    #define INCLUDE_IP
    #define ROM_RESIDENT
    #define INCLUDE_LOOPBACK
    #define INCLUDE_MIB2_IF
    #define INCLUDE_MUX
    #define INCLUDE_MLD /*(omit in an IPv4-only stack)*/
    #define INCLUDE_NBIO_LOG
    #define INCLUDE_ND /*(omit in an IPv4-only stack)*/
    #define INCLUDE_NETWORK
    #define INCLUDE_NET_BOOT
    #define INCLUDE_NET_BOOT_CONFIG
    #define INCLUDE_NET_DAEMON
    #define INCLUDE_NET_DRV
    #define INCLUDE_NET_HOST_SETUP
    #define INCLUDE_NET_INIT
    #define INCLUDE_NET_POOL
    #define INCLUDE_NETBUFPOOL
    #define INCLUDE_NETBUFLIB
    #define INCLUDE_NETMASK_GET
    #define INCLUDE_RAW
    #define INCLUDE_WDB
    #define INCLUDE_ROUTE
    #define INCLUDE_ROUTE_STORAGE
    #define INCLUDE_SOCKLIB
    #define INCLUDE_SNPRINTF
    #define INCLUDE_NET_SYSCTL
    #define INCLUDE_TCP
    #define INCLUDE_UDP
    #define INCLUDE_XDR
    #define INCLUDE_SNTPS
    /*#define INCLUDE_DHCPC*/
    #define INCLUDE_DHCPS
    #define INCLUDE_DHCPC_LEASE_CLEAN
    #define INCLUDE_APPL_LOG_UTIL
    #define INCLUDE_NET_GETOPT
    #define INCLUDE_STRICMP
    #define INCLUDE_PING
    #define INCLUDE_ENV_VARS
    #define INCLUDE_HOST_TBL
    #define INCLUDE_IFNAME
    #define BOOTCODE_IN_RAM

    #if (CPU == I80386)
    #define DEFAULT_BOOT_LINE \
    "fd=0,0(0,0)host:/fd0/vxWorks.st h=90.0.0.3 e=90.0.0.50 u=target"
    #elif (CPU == I80486)
    #define DEFAULT_BOOT_LINE \
    "fd=0,0(0,0)host:/fd0/vxWorks.st h=90.0.0.3 e=90.0.0.50 u=target"
    #elif (CPU_VARIANT == PENTIUM)
    #define DEFAULT_BOOT_LINE \
    "fd=0,0(0,0)FR233:/fd0/vxWorks.st h=10.112.36.50 e=10.112.37.40
    u=target"
    #elif (CPU_VARIANT == PENTIUMPRO)
    #define DEFAULT_BOOT_LINE \
    "fd=0,0(0,0)host:/fd0/vxWorks.st h=90.0.0.3 e=90.0.0.50 u=target"
    #endif /* (CPU == I80386) */

    /* Warm boot (reboot) devices and parameters */

    #define SYS_WARM_BIOS 0 /* warm start from BIOS */
    #define SYS_WARM_FD 1 /* warm start from FD */
    #define SYS_WARM_ATA 2 /* warm start from ATA */
    #define SYS_WARM_TFFS 3 /* warm start from DiskOnChip */

    #define SYS_WARM_TYPE SYS_WARM_FD /* warm start device */
    #define SYS_WARM_FD_DRIVE 0 /* 0 = drive a:, 1 = b: */
    #define SYS_WARM_FD_TYPE 0 /* 0 = 3.5" 2HD, 1 = 5.25" 2HD
    */
    #define SYS_WARM_ATA_CTRL 0 /* controller 0 */
    #define SYS_WARM_ATA_DRIVE 0 /* 0 = c:, 1 = d: */
    #define SYS_WARM_TFFS_DRIVE 0 /* 0 = c: (DOC) */

    /* IDT entry type options */

    #define SYS_INT_TRAPGATE 0x0000ef00 /* trap gate */
    #define SYS_INT_INTGATE 0x0000ee00 /* int gate */

    /* driver and file system options */

    #define INCLUDE_DOSFS /* include dosFs file system */
    #define INCLUDE_FD /* include floppy disk driver */
    #define INCLUDE_LPT /* include parallel port driver */
    #define INCLUDE_ATA /* include IDE/EIDE(ATA) hard disk driver */
    #undef INCLUDE_TIMESTAMP /* include TIMESTAMP timer for Wind View */
    #undef INCLUDE_TFFS /* include TrueFFS driver for Flash */
    #undef INCLUDE_PCMCIA /* include PCMCIA driver */

    #ifdef INCLUDE_PCMCIA
    #define INCLUDE_ATA /* include ATA driver */
    #define INCLUDE_SRAM /* include SRAM driver */
    #undef INCLUDE_TFFS /* include TFFS driver */
    #ifdef INCLUDE_NETWORK
    #define INCLUDE_ELT /* include 3COM EtherLink III driver */
    #endif /* INCLUDE_NETWORK */
    #endif /* INCLUDE_PCMCIA */

    #ifdef INCLUDE_TFFS
    #define INCLUDE_SHOW_ROUTINES
    #endif /* INCLUDE_TFFS */

    #if FALSE /* change FALSE to TRUE for SCSI interface
    */
    #define INCLUDE_SCSI /* include SCSI driver */
    #define INCLUDE_AIC_7880 /* include AIC 7880 SCSI driver */
    #define INCLUDE_SCSI_BOOT /* include ability to boot from SCSI */
    #undef INCLUDE_CDROMFS /* file system to be used */
    #define INCLUDE_TAPEFS /* file system to be used */
    #endif
    #define INCLUDE_SCSI2 /* select SCSI2 not SCSI1 */

    /* Network driver options */

    #define INCLUDE_END /* Use Enhanced Network Drivers */

    #undef INCLUDE_ULTRA /* include SMC Elite16 Ultra interface */
    #undef INCLUDE_ENE /* include Eagle/Novell NE2000 interface */
    #undef INCLUDE_ELT /* include 3COM EtherLink III interface */
    #undef INCLUDE_ESMC /* include SMC 91c9x Ethernet interface */
    #define INCLUDE_FEI /* include Intel Ether Express PRO100B PCI */
    #define INCLUDE_SLIP /* include serial line interface */
    #define SLIP_TTY 1 /* serial line IP channel COM2 */
    #undef INCLUDE_ELC /* include SMC Elite16 interface */
    #undef INCLUDE_EEX /* include INTEL EtherExpress interface */
    #undef INCLUDE_EEX32 /* include INTEL EtherExpress flash 32 */
    #undef INCLUDE_EX /* include Excelan Ethernet interface */
    #undef INCLUDE_ENP /* include CMC Ethernet interface*/
    #undef INCLUDE_SM_NET /* include backplane net interface */
    #undef INCLUDE_SM_SEQ_ADDR /* shared memory network auto address setup
    */
    #undef INCLUDE_EL_3C90X_END /* 3com fast etherLink XL PCI */
    #undef INCLUDE_LN_97X_END /* AMD 79C972 END DRIVER */

    /* verify network choices and dependencies */

    #if defined(INCLUDE_EL_3C90X_END) || defined(INCLUDE_LN_97X_END)
    #ifndef INCLUDE_END
    # define INCLUDE_END /* no netif support for these
    devices */
    #endif /* INCLUDE_END */
    #endif /* INCLUDE_EL_3C90X_END || INCLUDE_LN_97X_END */

    #ifdef INCLUDE_END
    # undef WDB_COMM_TYPE
    # define WDB_COMM_TYPE WDB_COMM_END /* END is prefered choice */

    # ifdef INCLUDE_FEI
    # undef INCLUDE_FEI /* don't use BSD driver */
    # define INCLUDE_FEI_END /* Use END driver instead */
    # endif

    # ifdef INCLUDE_ELT
    # undef INCLUDE_ELT /* don't use BSD driver */
    # define INCLUDE_ELT_3C509_END /* Use END driver instead */
    # endif

    # ifdef INCLUDE_ULTRA
    # undef INCLUDE_ULTRA /* don't use BSD driver */
    # define INCLUDE_ULTRA_END /* use END driver instead */
    # endif

    # ifdef INCLUDE_ENE
    # undef INCLUDE_ENE /* don't use BSD driver */
    # define INCLUDE_ENE_END /* use END driver instead */
    # endif

    #endif

    #if defined(INCLUDE_FEI) || defined(INCLUDE_LN_97X_END) || \
    defined (INCLUDE_EL_3C90X_END) || defined(INCLUDE_FEI_END)
    # define INCLUDE_PCI /* they all are PCI based */
    #endif


    /* Misc. options */

    #define INCLUDE_MMU_BASIC /* bundled mmu support */
    #undef VM_PAGE_SIZE
    #define VM_PAGE_SIZE PAGE_SIZE_4KB /* 4KB page */

    #define VM_STATE_MASK_FOR_ALL \
    VM_STATE_MASK_VALID | VM_STATE_MASK_WRITABLE | VM_STATE_MASK_CACHEABLE
    #define VM_STATE_FOR_IO \
    VM_STATE_VALID | VM_STATE_WRITABLE | VM_STATE_CACHEABLE_NOT
    #define VM_STATE_FOR_MEM_OS \
    VM_STATE_VALID | VM_STATE_WRITABLE | VM_STATE_CACHEABLE
    #define VM_STATE_FOR_MEM_APPLICATION \
    VM_STATE_VALID | VM_STATE_WRITABLE | VM_STATE_CACHEABLE
    #define VM_STATE_FOR_PCI \
    VM_STATE_VALID | VM_STATE_WRITABLE | VM_STATE_CACHEABLE_NOT

    /*
    * software floating point emulation support. DO NOT undefine hardware
    fp
    * support in configAll.h as it is required for software fp emulation.
    */


    #define INCLUDE_SW_FP

    #if (CPU_VARIANT == PENTIUM) /* Pentium specific macros */

    #undef INCLUDE_SW_FP /* Pentium has hardware FPP */
    #undef USER_D_CACHE_MODE /* Pentium write-back data cache support */
    #define USER_D_CACHE_MODE CACHE_COPYBACK
    #define INCLUDE_MTRR_GET /* get MTRR to sysMtrr[] */
    #define INCLUDE_PMC /* include PMC */

    #elif (CPU_VARIANT == PENTIUMPRO) /* PentiumPro specific macros */

    #undef INCLUDE_SW_FP /* PentiumPro has hardware FPP */
    #undef USER_D_CACHE_MODE /* PentiumPro write-back data cache w MESI */
    #define USER_D_CACHE_MODE (CACHE_COPYBACK | CACHE_SNOOP_ENABLE)
    #define INCLUDE_MTRR_GET /* get MTRR to sysMtrr[] */
    #define INCLUDE_PMC /* include PMC */
    #undef VIRTUAL_WIRE_MODE /* Interrupt Mode: Virtual Wire Mode */
    #undef SYMMETRIC_IO_MODE /* Interrupt Mode: Symmetric IO Mode */

    #if defined(VIRTUAL_WIRE_MODE) || defined(SYMMETRIC_IO_MODE)
    #define INCLUDE_APIC_TIMER /* include Local APIC timer */
    #define PIT0_FOR_AUX /* use channel 0 as an Aux Timer */
    #endif /* defined(VIRTUAL_WIRE_MODE) || defined(SYMMETRIC_IO_MODE) */

    #define INCLUDE_TIMESTAMP_TSC /* include TSC for timestamp */
    #define PENTIUMPRO_TSC_FREQ 0 /* auto detect TSC freq */
    #if FALSE
    #define PENTIUMPRO_TSC_FREQ 150000000 /* use specified TSC freq */
    #endif /* FALSE */

    #define INCLUDE_MMU_PENTIUMPRO /* include 32bit MMU for PentiumPro */
    #ifdef INCLUDE_MMU_PENTIUMPRO

    #undef VM_PAGE_SIZE /* page size could be 4KB or 4MB */
    #define VM_PAGE_SIZE PAGE_SIZE_4KB /* 4KB page */
    #if FALSE
    #define VM_PAGE_SIZE PAGE_SIZE_4MB /* 4MB page */
    #endif /* FALSE */

    #undef VM_STATE_MASK_FOR_ALL
    #undef VM_STATE_FOR_IO
    #undef VM_STATE_FOR_MEM_OS
    #undef VM_STATE_FOR_MEM_APPLICATION
    #undef VM_STATE_FOR_PCI
    #define VM_STATE_MASK_FOR_ALL \
    VM_STATE_MASK_VALID | VM_STATE_MASK_WRITABLE | \
    VM_STATE_MASK_CACHEABLE | VM_STATE_MASK_WBACK | VM_STATE_MASK_GLOBAL
    #define VM_STATE_FOR_IO \
    VM_STATE_VALID | VM_STATE_WRITABLE | \
    VM_STATE_CACHEABLE_NOT | VM_STATE_WBACK_NOT | VM_STATE_GLOBAL_NOT
    #define VM_STATE_FOR_MEM_OS \
    VM_STATE_VALID | VM_STATE_WRITABLE | \
    VM_STATE_CACHEABLE | VM_STATE_WBACK | VM_STATE_GLOBAL_NOT
    #define VM_STATE_FOR_MEM_APPLICATION \
    VM_STATE_VALID | VM_STATE_WRITABLE | \
    VM_STATE_CACHEABLE | VM_STATE_WBACK | VM_STATE_GLOBAL_NOT
    #define VM_STATE_FOR_PCI \
    VM_STATE_VALID | VM_STATE_WRITABLE | \
    VM_STATE_CACHEABLE_NOT | VM_STATE_WBACK_NOT | VM_STATE_GLOBAL_NOT

    #endif /* INCLUDE_MMU_PENTIUMPRO */
    #endif /* (CPU_VARIANT == PENTIUM) */


    #define IO_ADRS_ELC 0x240
    #define INT_LVL_ELC 0x0b
    #define MEM_ADRS_ELC 0xc8000
    #define MEM_SIZE_ELC 0x4000
    #define CONFIG_ELC 0 /* 0=EEPROM 1=RJ45+AUI 2=RJ45+BNC */

    #define IO_ADRS_ULTRA 0x240
    #define INT_LVL_ULTRA 0x0b
    #define MEM_ADRS_ULTRA 0xc8000
    #define MEM_SIZE_ULTRA 0x4000
    #define CONFIG_ULTRA 0 /* 0=EEPROM 1=RJ45+AUI 2=RJ45+BNC */

    #define IO_ADRS_EEX 0x240
    #define INT_LVL_EEX 0x0b
    #define NTFDS_EEX 0x00
    #define CONFIG_EEX 0 /* 0=EEPROM 1=AUI 2=BNC 3=RJ45 */
    /* Auto-detect is not supported, so choose */
    /* the right one you're going to use */

    #define IO_ADRS_ELT 0x240
    #define INT_LVL_ELT 0x0b
    #define NRF_ELT 0x00
    #define CONFIG_ELT 0 /* 0=EEPROM 1=AUI 2=BNC 3=RJ45 */

    #define IO_ADRS_ENE 0x300
    #define INT_LVL_ENE 0x05
    /* Hardware jumper is used to set */
    /* RJ45(Twisted Pair) AUI(Thick) BNC(Thin) */

    #define IO_ADRS_ESMC 0x300
    #define INT_LVL_ESMC 0x0b
    #define CONFIG_ESMC 0 /* 0=EEPROM 1=AUI 2=BNC 3=RJ45 */
    #define RX_MODE_ESMC 0 /* 0=interrupt level 1=task level */

    #ifdef INCLUDE_EEX32
    #define INCLUDE_EI /* include 82596 driver */
    #define INT_LVL_EI 0x0b
    #define EI_SYSBUS 0x44 /* 82596 SYSBUS value */
    #define EI_POOL_ADRS NONE /* memory allocated from system memory */
    #endif /* INCLUDE_EEX32 */

    #define FEI_POOL_ADRS NONE /* allocate pool space */

    #ifdef INCLUDE_SLIP
    #define SLIP_TTY 1 /* serial line IP channel COM2 */
    #define SLIP_BAUDRATE 19200 /* baudrate 19200 */
    #endif /* INCLUDE_SLIP */

    /* vectors for PIC(i8259a) and APIC */

    #ifdef SYMMETRIC_IO_MODE

    /*
    * Vector number could be any number in between 0x20 to 0xff.
    * Interrupt priority is implied by its vector number, according to
    * the following relationship:
    * priority = vectorNo / 16
    * The lowest priority is 1 and 15 is the highest. To avoid losing
    * interrupts, software should allocate no more than 2 interrupt
    * vectors per priority. Here is an example to get the vectorNo.
    * vectorNo(IRQn) = (0xe0 - (n * 8))
    */
    #define NUMBER_OF_IRQS 24
    #undef PIT0_INT_LVL
    #define PIT0_INT_LVL 0x2 /* interrupt level */
    #define INT_NUM_IRQ0 0xe0 /* vector number for IRQ0 */
    #define INT_VEC_GET(irq) (INT_NUM_IRQ0 - (irq * 8))
    #define SPURIOUS_INT_VEC 0xff /* local interrupt */
    #define TIMER_INT_VEC 0xf0 /* local interrupt */
    #define ERROR_INT_VEC 0xef /* local interrupt */
    #define PIT0_INT_VEC (INT_VEC_GET (PIT0_INT_LVL))
    #define COM1_INT_VEC (INT_VEC_GET (COM1_INT_LVL))
    #define COM2_INT_VEC (INT_VEC_GET (COM2_INT_LVL))
    #define RTC_INT_VEC (INT_VEC_GET (RTC_INT_LVL))
    #define FD_INT_VEC (INT_VEC_GET (FD_INT_LVL))
    #define ATA0_INT_VEC (INT_VEC_GET (ATA0_INT_LVL))
    #define ATA1_INT_VEC (INT_VEC_GET (ATA1_INT_LVL))
    #define PCIC_INT_VEC (INT_VEC_GET (PCIC_INT_LVL))
    #define TCIC_INT_VEC (INT_VEC_GET (TCIC_INT_LVL))
    #define ELT0_INT_VEC (INT_VEC_GET (ELT0_INT_LVL))
    #define ELT1_INT_VEC (INT_VEC_GET (ELT1_INT_LVL))
    #define LPT_INT_VEC (INT_VEC_GET (LPT_INT_LVL))
    #define FEI0_INT_VEC (INT_VEC_GET (FEI0_INT_LVL))
    #define FEI1_INT_VEC (INT_VEC_GET (FEI1_INT_LVL))
    #define FEI2_INT_VEC (INT_VEC_GET (FEI2_INT_LVL))
    #define FEI3_INT_VEC (INT_VEC_GET (FEI3_INT_LVL))
    #define KBD_INT_VEC (INT_VEC_GET (KBD_INT_LVL))
    #define INT_VEC_ELC (INT_VEC_GET (INT_LVL_ELC))
    #define INT_VEC_ULTRA (INT_VEC_GET (INT_LVL_ULTRA))
    #define INT_VEC_EEX (INT_VEC_GET (INT_LVL_EEX))
    #define INT_VEC_ELT (INT_VEC_GET (INT_LVL_ELT))
    #define INT_VEC_ENE (INT_VEC_GET (INT_LVL_ENE))
    #define INT_VEC_ESMC (INT_VEC_GET (INT_LVL_ESMC))
    #define INT_VEC_EI (INT_VEC_GET (INT_LVL_EI))

    #else /* SYMMETRIC_IO_MODE */

    /*
    * Vector number is not flexable as APIC and obtained by:
    * vectorNo(IRQn) = vectorNo(IRQ0) + n
    */
    #define NUMBER_OF_IRQS 16
    #define INT_NUM_IRQ0 0x20 /* vector number for IRQ0 */
    #define INT_VEC_GET(irq) (INT_NUM_IRQ0 + irq)
    #define SPURIOUS_INT_VEC 0xff /* local interrupt */
    #define TIMER_INT_VEC 0xf0 /* local interrupt */
    #define ERROR_INT_VEC 0xef /* local interrupt */
    #define PIT0_INT_VEC (INT_VEC_GET (PIT0_INT_LVL))
    #define COM1_INT_VEC (INT_VEC_GET (COM1_INT_LVL))
    #define COM2_INT_VEC (INT_VEC_GET (COM2_INT_LVL))
    #define RTC_INT_VEC (INT_VEC_GET (RTC_INT_LVL))
    #define FD_INT_VEC (INT_VEC_GET (FD_INT_LVL))
    #define ATA0_INT_VEC (INT_VEC_GET (ATA0_INT_LVL))
    #define ATA1_INT_VEC (INT_VEC_GET (ATA1_INT_LVL))
    #define PCIC_INT_VEC (INT_VEC_GET (PCIC_INT_LVL))
    #define TCIC_INT_VEC (INT_VEC_GET (TCIC_INT_LVL))
    #define ELT0_INT_VEC (INT_VEC_GET (ELT0_INT_LVL))
    #define ELT1_INT_VEC (INT_VEC_GET (ELT1_INT_LVL))
    #define LPT_INT_VEC (INT_VEC_GET (LPT_INT_LVL))
    #define FEI0_INT_VEC (INT_VEC_GET (FEI0_INT_LVL))
    #define FEI1_INT_VEC (INT_VEC_GET (FEI1_INT_LVL))
    #define FEI2_INT_VEC (INT_VEC_GET (FEI2_INT_LVL))
    #define FEI3_INT_VEC (INT_VEC_GET (FEI3_INT_LVL))
    #define KBD_INT_VEC (INT_VEC_GET (KBD_INT_LVL))
    #define INT_VEC_ELC (INT_VEC_GET (INT_LVL_ELC))
    #define INT_VEC_ULTRA (INT_VEC_GET (INT_LVL_ULTRA))
    #define INT_VEC_EEX (INT_VEC_GET (INT_LVL_EEX))
    #define INT_VEC_ELT (INT_VEC_GET (INT_LVL_ELT))
    #define INT_VEC_ENE (INT_VEC_GET (INT_LVL_ENE))
    #define INT_VEC_ESMC (INT_VEC_GET (INT_LVL_ESMC))
    #define INT_VEC_EI (INT_VEC_GET (INT_LVL_EI))

    #endif /* SYMMETRIC_IO_MODE */


    /* miscellaneous definitions */

    #define NV_RAM_SIZE NONE /* no NVRAM */

    /*
    * SYS_CLK_RATE_MAX depends upon a CPU power and a work load of an
    application.
    * The value was chosen in order to pass the internal test suit,
    * but it could go up to PIT_CLOCK.
    */
    #define SYS_CLK_RATE_MIN 19 /* minimum system clock rate */
    #define SYS_CLK_RATE_MAX (PIT_CLOCK/256) /* maximum system clock rate
    */
    #define AUX_CLK_RATE_MIN 2 /* minimum auxiliary clock rate
    */
    #define AUX_CLK_RATE_MAX 8192 /* maximum auxiliary clock rate
    */


    /* pc console definitions */

    #if TRUE
    #define INCLUDE_PC_CONSOLE /* KBD and VGA are included */
    #endif /* TRUE/FALSE */

    #ifdef INCLUDE_PC_CONSOLE

    #define PC_CONSOLE 0 /* console number */
    #define N_VIRTUAL_CONSOLES 2 /* shell / application */

    #endif /* INCLUDE_PC_CONSOLE */

    #undef NUM_TTY
    #define NUM_TTY (N_UART_CHANNELS)

    /* define a type of keyboard. The default is 101 KEY for PS/2 */

    #define PC_KBD_TYPE PC_PS2_101_KBD
    #if FALSE
    #define PC_KBD_TYPE PC_XT_83_KBD
    #endif /* FALSE */


    /* memory addresses */

    /* User reserved memory. See sysMemTop(). */

    #define USER_RESERVED_MEM 0

    /*
    * Local-to-Bus memory address constants:
    * the local memory address always appears at 0 locally;
    * it is not dual ported.
    */

    #define LOCAL_MEM_LOCAL_ADRS 0x00000000 /* fixed */
    #define LOCAL_MEM_BUS_ADRS 0x00000000 /* fixed */
    #define LOCAL_MEM_SIZE 0x00800000 /* 8MB w lower mem */

    /*
    * Auto-sizing of memory is supported when this option is defined, in
    which
    * case LOCAL_MEM_SIZE is ignored. See sysyPhysMemTop().
    */

    #define LOCAL_MEM_AUTOSIZE

    /*
    * The following parameters are defined here and in the Makefile.
    * The must be kept synchronized; effectively config.h depends on
    Makefile.
    * Any changes made here must be made in the Makefile and vice versa.
    */

    #ifdef BOOTCODE_IN_RAM
    #define ROM_BASE_ADRS 0x00008000 /* base address of ROM */
    #define ROM_TEXT_ADRS (ROM_BASE_ADRS) /* booting from A: or C: */
    #define ROM_SIZE 0x00090000 /* size of ROM */
    #else
    #define ROM_BASE_ADRS 0xfff20000 /* base address of ROM */
    #define ROM_TEXT_ADRS (ROM_BASE_ADRS) /* booting from EPROM */
    #define ROM_SIZE 0x0007fe00 /* size of ROM */
    #endif

    #define RAM_LOW_ADRS 0x00108000 /* VxWorks image entry point */
    #define RAM_HIGH_ADRS 0x00008000 /* Boot image entry point */

    /*
    * The macro INCLUDE_ADD_BOOTMEM enables sysHwInit2,sysLib.c code which

    * adds some upper memory (>1MB) to the bootrom image memory pool.
    * It should not be defined for x86 systems with limited memory,< 4MB.

    * The default value for ADDED_BOOTMEM_SIZE is 0x00200000 (2MB).
    * This value may be increased, but one must ensure that the pool
    * does not overlap with the downloaded vxWorks image. If there is
    * an overlap, then loading the vxWorks runtime image will corrupt
    * the added memory pool. The calculation is:
    * (RAM_LOW_ADRS + vxWorks image size) < (memTopPhys -
    ADDED_BOOTMEM_SIZE)
    * Where: RAM_LOW_ADRS == 0x00108000 and memTopPhys is from sysLib.c.
    * This corrects SPR#21338.
    */

    #define INCLUDE_ADD_BOOTMEM /* Add upper memory to low memory bootrom
    */
    #define ADDED_BOOTMEM_SIZE 0x00200000 /* 2MB */

    #endif /* INCconfigh */

    #if defined(PRJ_BUILD)
    #include "prjParams.h"
    #endif



    thanks...........


  6. Re: vxworks......

    OK. You say you are booting from FD (Floppy disk), correct? If you
    are, then in the boot param, you need to fill in the name of your
    network device in order to get the network stack going.

    If you are unsure of the name of the network device, at the boot prompt
    ":", where you type "@", enter "h" and the last stuff printed will be
    the name of the boot devices available (FD, ufl, ata, fei, etc). Put
    that device in the other field and fill in the IP related addresses in
    the boot prompts.

    Good luck,
    lc
    ravi wrote:
    > LarryC wrote:
    > > Hi:
    > >
    > > On the tgt, are you starting the net stack ok? If you are booting from
    > > FD, you'll need to specify you netDrv in the Other: boot param.
    > >
    > > Can you ping the target from the host? If that work, but the target
    > > server connection fails (and you've checked the obvious like the
    > > correct WDB comm methods, IP addresses, etc), then try getting your
    > > Host registry set up remotely - Tornado,, the tool->Options-> Registry.
    > > Choose "remote" and put in the IP address of the HOST pc in there.
    > > That usually works for me.
    > >
    > > Good luck,
    > > Larry
    > > ravi wrote:
    > > > LarryC wrote:
    > > > > Certainly. If you use vxSim, you can make the host, target server, and
    > > > > target all the same pc.
    > > > >
    > > > > Larry
    > > > > ravi wrote:
    > > > > > can we make host & target server on the same pc......
    > > >
    > > > i make one system in a ethernet lan to be host & also target server is
    > > > on this machine,also on another machine i boot it with floppy disk to
    > > > make it target.....
    > > > i make some changes in config.h .
    > > > then i boot target it boots properly i also get vxworks prompt.
    > > > then i launch target server ... i will get
    > > > Connecting to target agent...
    > > > tgtsvr (tgt@hddlntd2403222): Wed Nov 01 18:45:32 2006
    > > > Error: rpccore backend client Timed out
    > > > failed.
    > > >
    > > >
    > > > please give me some suggestions....
    > > > i also try ping at target shell but it gives ...
    > > > ping undefined symbol...

    >
    >
    > hi....
    > I do not knowOn the tgt, how to starting the net stack , also it is
    > not starting i think ,please give procedure to start net stack.
    > also i do not understand what you are saying in "If you are booting
    > fromFD, you'll need to specify you netDrv in the Other: boot param".
    > also i can't able to ping target from host.i also change registry to
    > remote but it does not work....
    > ok..
    > i will be sending you the config.h file i am using bsp pc pentium.....&
    > file VxWorks.st....
    > In bootable floppy drive i have two files one is bootrom.sys and
    > vxWorks.st.
    >
    > file config.h is....
    >
    >
    > #ifndef INCconfigh
    > #define INCconfigh
    >
    > /* BSP version/revision identification, before configAll.h */
    >
    > #define BSP_VER_1_1 1 /* 1.2 is backward compatible with 1.1 */
    > #define BSP_VER_1_2 1
    > #define BSP_VERSION "1.2"
    > #define BSP_REV "/0" /* 0 for first revision */
    >
    > #include "configAll.h"
    > #include "pc.h"
    > #define INCLUDE_NETWORK
    > #define INCLUDE_BOOT_LINE_INIT
    > #define INCLUDE_BSD_SOCKET
    > #define INCLUDE_DOMAIN_INIT
    > #define INCLUDE_END
    > #define INCLUDE_ETHERNET
    > #define INCLUDE_GTF
    > #define INCLUDE_GTF_TIMER_START
    > #define INCLUDE_ICMP
    > #define INCLUDE_NFS
    > #define INCLUDE_INETLIB
    > #define INCLUDE_IP6ATTACH /* (omit in an IPv4-only stack)*/
    > #define INCLUDE_IPATTACH
    > #define INCLUDE_IPPROTO
    > #define INCLUDE_IP
    > #define ROM_RESIDENT
    > #define INCLUDE_LOOPBACK
    > #define INCLUDE_MIB2_IF
    > #define INCLUDE_MUX
    > #define INCLUDE_MLD /*(omit in an IPv4-only stack)*/
    > #define INCLUDE_NBIO_LOG
    > #define INCLUDE_ND /*(omit in an IPv4-only stack)*/
    > #define INCLUDE_NETWORK
    > #define INCLUDE_NET_BOOT
    > #define INCLUDE_NET_BOOT_CONFIG
    > #define INCLUDE_NET_DAEMON
    > #define INCLUDE_NET_DRV
    > #define INCLUDE_NET_HOST_SETUP
    > #define INCLUDE_NET_INIT
    > #define INCLUDE_NET_POOL
    > #define INCLUDE_NETBUFPOOL
    > #define INCLUDE_NETBUFLIB
    > #define INCLUDE_NETMASK_GET
    > #define INCLUDE_RAW
    > #define INCLUDE_WDB
    > #define INCLUDE_ROUTE
    > #define INCLUDE_ROUTE_STORAGE
    > #define INCLUDE_SOCKLIB
    > #define INCLUDE_SNPRINTF
    > #define INCLUDE_NET_SYSCTL
    > #define INCLUDE_TCP
    > #define INCLUDE_UDP
    > #define INCLUDE_XDR
    > #define INCLUDE_SNTPS
    > /*#define INCLUDE_DHCPC*/
    > #define INCLUDE_DHCPS
    > #define INCLUDE_DHCPC_LEASE_CLEAN
    > #define INCLUDE_APPL_LOG_UTIL
    > #define INCLUDE_NET_GETOPT
    > #define INCLUDE_STRICMP
    > #define INCLUDE_PING
    > #define INCLUDE_ENV_VARS
    > #define INCLUDE_HOST_TBL
    > #define INCLUDE_IFNAME
    > #define BOOTCODE_IN_RAM
    >
    > #if (CPU == I80386)
    > #define DEFAULT_BOOT_LINE \
    > "fd=0,0(0,0)host:/fd0/vxWorks.st h=90.0.0.3 e=90.0.0.50 u=target"
    > #elif (CPU == I80486)
    > #define DEFAULT_BOOT_LINE \
    > "fd=0,0(0,0)host:/fd0/vxWorks.st h=90.0.0.3 e=90.0.0.50 u=target"
    > #elif (CPU_VARIANT == PENTIUM)
    > #define DEFAULT_BOOT_LINE \
    > "fd=0,0(0,0)FR233:/fd0/vxWorks.st h=10.112.36.50 e=10.112.37.40
    > u=target"
    > #elif (CPU_VARIANT == PENTIUMPRO)
    > #define DEFAULT_BOOT_LINE \
    > "fd=0,0(0,0)host:/fd0/vxWorks.st h=90.0.0.3 e=90.0.0.50 u=target"
    > #endif /* (CPU == I80386) */
    >
    > /* Warm boot (reboot) devices and parameters */
    >
    > #define SYS_WARM_BIOS 0 /* warm start from BIOS */
    > #define SYS_WARM_FD 1 /* warm start from FD */
    > #define SYS_WARM_ATA 2 /* warm start from ATA */
    > #define SYS_WARM_TFFS 3 /* warm start from DiskOnChip */
    >
    > #define SYS_WARM_TYPE SYS_WARM_FD /* warm start device */
    > #define SYS_WARM_FD_DRIVE 0 /* 0 = drive a:, 1 = b: */
    > #define SYS_WARM_FD_TYPE 0 /* 0 = 3.5" 2HD, 1 = 5.25" 2HD
    > */
    > #define SYS_WARM_ATA_CTRL 0 /* controller 0 */
    > #define SYS_WARM_ATA_DRIVE 0 /* 0 = c:, 1 = d: */
    > #define SYS_WARM_TFFS_DRIVE 0 /* 0 = c: (DOC) */
    >
    > /* IDT entry type options */
    >
    > #define SYS_INT_TRAPGATE 0x0000ef00 /* trap gate */
    > #define SYS_INT_INTGATE 0x0000ee00 /* int gate */
    >
    > /* driver and file system options */
    >
    > #define INCLUDE_DOSFS /* include dosFs file system */
    > #define INCLUDE_FD /* include floppy disk driver */
    > #define INCLUDE_LPT /* include parallel port driver */
    > #define INCLUDE_ATA /* include IDE/EIDE(ATA) hard disk driver */
    > #undef INCLUDE_TIMESTAMP /* include TIMESTAMP timer for Wind View */
    > #undef INCLUDE_TFFS /* include TrueFFS driver for Flash */
    > #undef INCLUDE_PCMCIA /* include PCMCIA driver */
    >
    > #ifdef INCLUDE_PCMCIA
    > #define INCLUDE_ATA /* include ATA driver */
    > #define INCLUDE_SRAM /* include SRAM driver */
    > #undef INCLUDE_TFFS /* include TFFS driver */
    > #ifdef INCLUDE_NETWORK
    > #define INCLUDE_ELT /* include 3COM EtherLink III driver */
    > #endif /* INCLUDE_NETWORK */
    > #endif /* INCLUDE_PCMCIA */
    >
    > #ifdef INCLUDE_TFFS
    > #define INCLUDE_SHOW_ROUTINES
    > #endif /* INCLUDE_TFFS */
    >
    > #if FALSE /* change FALSE to TRUE for SCSI interface
    > */
    > #define INCLUDE_SCSI /* include SCSI driver */
    > #define INCLUDE_AIC_7880 /* include AIC 7880 SCSI driver */
    > #define INCLUDE_SCSI_BOOT /* include ability to boot from SCSI */
    > #undef INCLUDE_CDROMFS /* file system to be used */
    > #define INCLUDE_TAPEFS /* file system to be used */
    > #endif
    > #define INCLUDE_SCSI2 /* select SCSI2 not SCSI1 */
    >
    > /* Network driver options */
    >
    > #define INCLUDE_END /* Use Enhanced Network Drivers */
    >
    > #undef INCLUDE_ULTRA /* include SMC Elite16 Ultra interface */
    > #undef INCLUDE_ENE /* include Eagle/Novell NE2000 interface */
    > #undef INCLUDE_ELT /* include 3COM EtherLink III interface */
    > #undef INCLUDE_ESMC /* include SMC 91c9x Ethernet interface */
    > #define INCLUDE_FEI /* include Intel Ether Express PRO100B PCI */
    > #define INCLUDE_SLIP /* include serial line interface */
    > #define SLIP_TTY 1 /* serial line IP channel COM2 */
    > #undef INCLUDE_ELC /* include SMC Elite16 interface */
    > #undef INCLUDE_EEX /* include INTEL EtherExpress interface */
    > #undef INCLUDE_EEX32 /* include INTEL EtherExpress flash 32 */
    > #undef INCLUDE_EX /* include Excelan Ethernet interface */
    > #undef INCLUDE_ENP /* include CMC Ethernet interface*/
    > #undef INCLUDE_SM_NET /* include backplane net interface */
    > #undef INCLUDE_SM_SEQ_ADDR /* shared memory network auto address setup
    > */
    > #undef INCLUDE_EL_3C90X_END /* 3com fast etherLink XL PCI */
    > #undef INCLUDE_LN_97X_END /* AMD 79C972 END DRIVER */
    >
    > /* verify network choices and dependencies */
    >
    > #if defined(INCLUDE_EL_3C90X_END) || defined(INCLUDE_LN_97X_END)
    > #ifndef INCLUDE_END
    > # define INCLUDE_END /* no netif support for these
    > devices */
    > #endif /* INCLUDE_END */
    > #endif /* INCLUDE_EL_3C90X_END || INCLUDE_LN_97X_END */
    >
    > #ifdef INCLUDE_END
    > # undef WDB_COMM_TYPE
    > # define WDB_COMM_TYPE WDB_COMM_END /* END is prefered choice */
    >
    > # ifdef INCLUDE_FEI
    > # undef INCLUDE_FEI /* don't use BSD driver */
    > # define INCLUDE_FEI_END /* Use END driver instead */
    > # endif
    >
    > # ifdef INCLUDE_ELT
    > # undef INCLUDE_ELT /* don't use BSD driver */
    > # define INCLUDE_ELT_3C509_END /* Use END driver instead */
    > # endif
    >
    > # ifdef INCLUDE_ULTRA
    > # undef INCLUDE_ULTRA /* don't use BSD driver */
    > # define INCLUDE_ULTRA_END /* use END driver instead */
    > # endif
    >
    > # ifdef INCLUDE_ENE
    > # undef INCLUDE_ENE /* don't use BSD driver */
    > # define INCLUDE_ENE_END /* use END driver instead */
    > # endif
    >
    > #endif
    >
    > #if defined(INCLUDE_FEI) || defined(INCLUDE_LN_97X_END) || \
    > defined (INCLUDE_EL_3C90X_END) || defined(INCLUDE_FEI_END)
    > # define INCLUDE_PCI /* they all are PCI based */
    > #endif
    >
    >
    > /* Misc. options */
    >
    > #define INCLUDE_MMU_BASIC /* bundled mmu support */
    > #undef VM_PAGE_SIZE
    > #define VM_PAGE_SIZE PAGE_SIZE_4KB /* 4KB page */
    >
    > #define VM_STATE_MASK_FOR_ALL \
    > VM_STATE_MASK_VALID | VM_STATE_MASK_WRITABLE | VM_STATE_MASK_CACHEABLE
    > #define VM_STATE_FOR_IO \
    > VM_STATE_VALID | VM_STATE_WRITABLE | VM_STATE_CACHEABLE_NOT
    > #define VM_STATE_FOR_MEM_OS \
    > VM_STATE_VALID | VM_STATE_WRITABLE | VM_STATE_CACHEABLE
    > #define VM_STATE_FOR_MEM_APPLICATION \
    > VM_STATE_VALID | VM_STATE_WRITABLE | VM_STATE_CACHEABLE
    > #define VM_STATE_FOR_PCI \
    > VM_STATE_VALID | VM_STATE_WRITABLE | VM_STATE_CACHEABLE_NOT
    >
    > /*
    > * software floating point emulation support. DO NOT undefine hardware
    > fp
    > * support in configAll.h as it is required for software fp emulation.
    > */
    >
    >
    > #define INCLUDE_SW_FP
    >
    > #if (CPU_VARIANT == PENTIUM) /* Pentium specific macros */
    >
    > #undef INCLUDE_SW_FP /* Pentium has hardware FPP */
    > #undef USER_D_CACHE_MODE /* Pentium write-back data cache support */
    > #define USER_D_CACHE_MODE CACHE_COPYBACK
    > #define INCLUDE_MTRR_GET /* get MTRR to sysMtrr[] */
    > #define INCLUDE_PMC /* include PMC */
    >
    > #elif (CPU_VARIANT == PENTIUMPRO) /* PentiumPro specific macros */
    >
    > #undef INCLUDE_SW_FP /* PentiumPro has hardware FPP */
    > #undef USER_D_CACHE_MODE /* PentiumPro write-back data cache w MESI */
    > #define USER_D_CACHE_MODE (CACHE_COPYBACK | CACHE_SNOOP_ENABLE)
    > #define INCLUDE_MTRR_GET /* get MTRR to sysMtrr[] */
    > #define INCLUDE_PMC /* include PMC */
    > #undef VIRTUAL_WIRE_MODE /* Interrupt Mode: Virtual Wire Mode */
    > #undef SYMMETRIC_IO_MODE /* Interrupt Mode: Symmetric IO Mode */
    >
    > #if defined(VIRTUAL_WIRE_MODE) || defined(SYMMETRIC_IO_MODE)
    > #define INCLUDE_APIC_TIMER /* include Local APIC timer */
    > #define PIT0_FOR_AUX /* use channel 0 as an Aux Timer */
    > #endif /* defined(VIRTUAL_WIRE_MODE) || defined(SYMMETRIC_IO_MODE) */
    >
    > #define INCLUDE_TIMESTAMP_TSC /* include TSC for timestamp */
    > #define PENTIUMPRO_TSC_FREQ 0 /* auto detect TSC freq */
    > #if FALSE
    > #define PENTIUMPRO_TSC_FREQ 150000000 /* use specified TSC freq */
    > #endif /* FALSE */
    >
    > #define INCLUDE_MMU_PENTIUMPRO /* include 32bit MMU for PentiumPro */
    > #ifdef INCLUDE_MMU_PENTIUMPRO
    >
    > #undef VM_PAGE_SIZE /* page size could be 4KB or 4MB */
    > #define VM_PAGE_SIZE PAGE_SIZE_4KB /* 4KB page */
    > #if FALSE
    > #define VM_PAGE_SIZE PAGE_SIZE_4MB /* 4MB page */
    > #endif /* FALSE */
    >
    > #undef VM_STATE_MASK_FOR_ALL
    > #undef VM_STATE_FOR_IO
    > #undef VM_STATE_FOR_MEM_OS
    > #undef VM_STATE_FOR_MEM_APPLICATION
    > #undef VM_STATE_FOR_PCI
    > #define VM_STATE_MASK_FOR_ALL \
    > VM_STATE_MASK_VALID | VM_STATE_MASK_WRITABLE | \
    > VM_STATE_MASK_CACHEABLE | VM_STATE_MASK_WBACK | VM_STATE_MASK_GLOBAL
    > #define VM_STATE_FOR_IO \
    > VM_STATE_VALID | VM_STATE_WRITABLE | \
    > VM_STATE_CACHEABLE_NOT | VM_STATE_WBACK_NOT | VM_STATE_GLOBAL_NOT
    > #define VM_STATE_FOR_MEM_OS \
    > VM_STATE_VALID | VM_STATE_WRITABLE | \
    > VM_STATE_CACHEABLE | VM_STATE_WBACK | VM_STATE_GLOBAL_NOT
    > #define VM_STATE_FOR_MEM_APPLICATION \
    > VM_STATE_VALID | VM_STATE_WRITABLE | \
    > VM_STATE_CACHEABLE | VM_STATE_WBACK | VM_STATE_GLOBAL_NOT
    > #define VM_STATE_FOR_PCI \
    > VM_STATE_VALID | VM_STATE_WRITABLE | \
    > VM_STATE_CACHEABLE_NOT | VM_STATE_WBACK_NOT | VM_STATE_GLOBAL_NOT
    >
    > #endif /* INCLUDE_MMU_PENTIUMPRO */
    > #endif /* (CPU_VARIANT == PENTIUM) */
    >
    >
    > #define IO_ADRS_ELC 0x240
    > #define INT_LVL_ELC 0x0b
    > #define MEM_ADRS_ELC 0xc8000
    > #define MEM_SIZE_ELC 0x4000
    > #define CONFIG_ELC 0 /* 0=EEPROM 1=RJ45+AUI 2=RJ45+BNC */
    >
    > #define IO_ADRS_ULTRA 0x240
    > #define INT_LVL_ULTRA 0x0b
    > #define MEM_ADRS_ULTRA 0xc8000
    > #define MEM_SIZE_ULTRA 0x4000
    > #define CONFIG_ULTRA 0 /* 0=EEPROM 1=RJ45+AUI 2=RJ45+BNC */
    >
    > #define IO_ADRS_EEX 0x240
    > #define INT_LVL_EEX 0x0b
    > #define NTFDS_EEX 0x00
    > #define CONFIG_EEX 0 /* 0=EEPROM 1=AUI 2=BNC 3=RJ45 */
    > /* Auto-detect is not supported, so choose */
    > /* the right one you're going to use */
    >
    > #define IO_ADRS_ELT 0x240
    > #define INT_LVL_ELT 0x0b
    > #define NRF_ELT 0x00
    > #define CONFIG_ELT 0 /* 0=EEPROM 1=AUI 2=BNC 3=RJ45 */
    >
    > #define IO_ADRS_ENE 0x300
    > #define INT_LVL_ENE 0x05
    > /* Hardware jumper is used to set */
    > /* RJ45(Twisted Pair) AUI(Thick) BNC(Thin) */
    >
    > #define IO_ADRS_ESMC 0x300
    > #define INT_LVL_ESMC 0x0b
    > #define CONFIG_ESMC 0 /* 0=EEPROM 1=AUI 2=BNC 3=RJ45 */
    > #define RX_MODE_ESMC 0 /* 0=interrupt level 1=task level */
    >
    > #ifdef INCLUDE_EEX32
    > #define INCLUDE_EI /* include 82596 driver */
    > #define INT_LVL_EI 0x0b
    > #define EI_SYSBUS 0x44 /* 82596 SYSBUS value */
    > #define EI_POOL_ADRS NONE /* memory allocated from system memory */
    > #endif /* INCLUDE_EEX32 */
    >
    > #define FEI_POOL_ADRS NONE /* allocate pool space */
    >
    > #ifdef INCLUDE_SLIP
    > #define SLIP_TTY 1 /* serial line IP channel COM2 */
    > #define SLIP_BAUDRATE 19200 /* baudrate 19200 */
    > #endif /* INCLUDE_SLIP */
    >
    > /* vectors for PIC(i8259a) and APIC */
    >
    > #ifdef SYMMETRIC_IO_MODE
    >
    > /*
    > * Vector number could be any number in between 0x20 to 0xff.
    > * Interrupt priority is implied by its vector number, according to
    > * the following relationship:
    > * priority = vectorNo / 16
    > * The lowest priority is 1 and 15 is the highest. To avoid losing
    > * interrupts, software should allocate no more than 2 interrupt
    > * vectors per priority. Here is an example to get the vectorNo.
    > * vectorNo(IRQn) = (0xe0 - (n * 8))
    > */
    > #define NUMBER_OF_IRQS 24
    > #undef PIT0_INT_LVL
    > #define PIT0_INT_LVL 0x2 /* interrupt level */
    > #define INT_NUM_IRQ0 0xe0 /* vector number for IRQ0 */
    > #define INT_VEC_GET(irq) (INT_NUM_IRQ0 - (irq * 8))
    > #define SPURIOUS_INT_VEC 0xff /* local interrupt */
    > #define TIMER_INT_VEC 0xf0 /* local interrupt */
    > #define ERROR_INT_VEC 0xef /* local interrupt */
    > #define PIT0_INT_VEC (INT_VEC_GET (PIT0_INT_LVL))
    > #define COM1_INT_VEC (INT_VEC_GET (COM1_INT_LVL))
    > #define COM2_INT_VEC (INT_VEC_GET (COM2_INT_LVL))
    > #define RTC_INT_VEC (INT_VEC_GET (RTC_INT_LVL))
    > #define FD_INT_VEC (INT_VEC_GET (FD_INT_LVL))
    > #define ATA0_INT_VEC (INT_VEC_GET (ATA0_INT_LVL))
    > #define ATA1_INT_VEC (INT_VEC_GET (ATA1_INT_LVL))
    > #define PCIC_INT_VEC (INT_VEC_GET (PCIC_INT_LVL))
    > #define TCIC_INT_VEC (INT_VEC_GET (TCIC_INT_LVL))
    > #define ELT0_INT_VEC (INT_VEC_GET (ELT0_INT_LVL))
    > #define ELT1_INT_VEC (INT_VEC_GET (ELT1_INT_LVL))
    > #define LPT_INT_VEC (INT_VEC_GET (LPT_INT_LVL))
    > #define FEI0_INT_VEC (INT_VEC_GET (FEI0_INT_LVL))
    > #define FEI1_INT_VEC (INT_VEC_GET (FEI1_INT_LVL))
    > #define FEI2_INT_VEC (INT_VEC_GET (FEI2_INT_LVL))
    > #define FEI3_INT_VEC (INT_VEC_GET (FEI3_INT_LVL))
    > #define KBD_INT_VEC (INT_VEC_GET (KBD_INT_LVL))
    > #define INT_VEC_ELC (INT_VEC_GET (INT_LVL_ELC))
    > #define INT_VEC_ULTRA (INT_VEC_GET (INT_LVL_ULTRA))
    > #define INT_VEC_EEX (INT_VEC_GET (INT_LVL_EEX))
    > #define INT_VEC_ELT (INT_VEC_GET (INT_LVL_ELT))
    > #define INT_VEC_ENE (INT_VEC_GET (INT_LVL_ENE))
    > #define INT_VEC_ESMC (INT_VEC_GET (INT_LVL_ESMC))
    > #define INT_VEC_EI (INT_VEC_GET (INT_LVL_EI))
    >
    > #else /* SYMMETRIC_IO_MODE */
    >
    > /*
    > * Vector number is not flexable as APIC and obtained by:
    > * vectorNo(IRQn) = vectorNo(IRQ0) + n
    > */
    > #define NUMBER_OF_IRQS 16
    > #define INT_NUM_IRQ0 0x20 /* vector number for IRQ0 */
    > #define INT_VEC_GET(irq) (INT_NUM_IRQ0 + irq)
    > #define SPURIOUS_INT_VEC 0xff /* local interrupt */
    > #define TIMER_INT_VEC 0xf0 /* local interrupt */
    > #define ERROR_INT_VEC 0xef /* local interrupt */
    > #define PIT0_INT_VEC (INT_VEC_GET (PIT0_INT_LVL))
    > #define COM1_INT_VEC (INT_VEC_GET (COM1_INT_LVL))
    > #define COM2_INT_VEC (INT_VEC_GET (COM2_INT_LVL))
    > #define RTC_INT_VEC (INT_VEC_GET (RTC_INT_LVL))
    > #define FD_INT_VEC (INT_VEC_GET (FD_INT_LVL))
    > #define ATA0_INT_VEC (INT_VEC_GET (ATA0_INT_LVL))
    > #define ATA1_INT_VEC (INT_VEC_GET (ATA1_INT_LVL))
    > #define PCIC_INT_VEC (INT_VEC_GET (PCIC_INT_LVL))
    > #define TCIC_INT_VEC (INT_VEC_GET (TCIC_INT_LVL))
    > #define ELT0_INT_VEC (INT_VEC_GET (ELT0_INT_LVL))
    > #define ELT1_INT_VEC (INT_VEC_GET (ELT1_INT_LVL))
    > #define LPT_INT_VEC (INT_VEC_GET (LPT_INT_LVL))
    > #define FEI0_INT_VEC (INT_VEC_GET (FEI0_INT_LVL))
    > #define FEI1_INT_VEC (INT_VEC_GET (FEI1_INT_LVL))
    > #define FEI2_INT_VEC (INT_VEC_GET (FEI2_INT_LVL))
    > #define FEI3_INT_VEC (INT_VEC_GET (FEI3_INT_LVL))
    > #define KBD_INT_VEC (INT_VEC_GET (KBD_INT_LVL))
    > #define INT_VEC_ELC (INT_VEC_GET (INT_LVL_ELC))
    > #define INT_VEC_ULTRA (INT_VEC_GET (INT_LVL_ULTRA))
    > #define INT_VEC_EEX (INT_VEC_GET (INT_LVL_EEX))
    > #define INT_VEC_ELT (INT_VEC_GET (INT_LVL_ELT))
    > #define INT_VEC_ENE (INT_VEC_GET (INT_LVL_ENE))
    > #define INT_VEC_ESMC (INT_VEC_GET (INT_LVL_ESMC))
    > #define INT_VEC_EI (INT_VEC_GET (INT_LVL_EI))
    >
    > #endif /* SYMMETRIC_IO_MODE */
    >
    >
    > /* miscellaneous definitions */
    >
    > #define NV_RAM_SIZE NONE /* no NVRAM */
    >
    > /*
    > * SYS_CLK_RATE_MAX depends upon a CPU power and a work load of an
    > application.
    > * The value was chosen in order to pass the internal test suit,
    > * but it could go up to PIT_CLOCK.
    > */
    > #define SYS_CLK_RATE_MIN 19 /* minimum system clock rate */
    > #define SYS_CLK_RATE_MAX (PIT_CLOCK/256) /* maximum system clock rate
    > */
    > #define AUX_CLK_RATE_MIN 2 /* minimum auxiliary clock rate
    > */
    > #define AUX_CLK_RATE_MAX 8192 /* maximum auxiliary clock rate
    > */
    >
    >
    > /* pc console definitions */
    >
    > #if TRUE
    > #define INCLUDE_PC_CONSOLE /* KBD and VGA are included */
    > #endif /* TRUE/FALSE */
    >
    > #ifdef INCLUDE_PC_CONSOLE
    >
    > #define PC_CONSOLE 0 /* console number */
    > #define N_VIRTUAL_CONSOLES 2 /* shell / application */
    >
    > #endif /* INCLUDE_PC_CONSOLE */
    >
    > #undef NUM_TTY
    > #define NUM_TTY (N_UART_CHANNELS)
    >
    > /* define a type of keyboard. The default is 101 KEY for PS/2 */
    >
    > #define PC_KBD_TYPE PC_PS2_101_KBD
    > #if FALSE
    > #define PC_KBD_TYPE PC_XT_83_KBD
    > #endif /* FALSE */
    >
    >
    > /* memory addresses */
    >
    > /* User reserved memory. See sysMemTop(). */
    >
    > #define USER_RESERVED_MEM 0
    >
    > /*
    > * Local-to-Bus memory address constants:
    > * the local memory address always appears at 0 locally;
    > * it is not dual ported.
    > */
    >
    > #define LOCAL_MEM_LOCAL_ADRS 0x00000000 /* fixed */
    > #define LOCAL_MEM_BUS_ADRS 0x00000000 /* fixed */
    > #define LOCAL_MEM_SIZE 0x00800000 /* 8MB w lower mem */
    >
    > /*
    > * Auto-sizing of memory is supported when this option is defined, in
    > which
    > * case LOCAL_MEM_SIZE is ignored. See sysyPhysMemTop().
    > */
    >
    > #define LOCAL_MEM_AUTOSIZE
    >
    > /*
    > * The following parameters are defined here and in the Makefile.
    > * The must be kept synchronized; effectively config.h depends on
    > Makefile.
    > * Any changes made here must be made in the Makefile and vice versa.
    > */
    >
    > #ifdef BOOTCODE_IN_RAM
    > #define ROM_BASE_ADRS 0x00008000 /* base address of ROM */
    > #define ROM_TEXT_ADRS (ROM_BASE_ADRS) /* booting from A: or C: */
    > #define ROM_SIZE 0x00090000 /* size of ROM */
    > #else
    > #define ROM_BASE_ADRS 0xfff20000 /* base address of ROM */
    > #define ROM_TEXT_ADRS (ROM_BASE_ADRS) /* booting from EPROM */
    > #define ROM_SIZE 0x0007fe00 /* size of ROM */
    > #endif
    >
    > #define RAM_LOW_ADRS 0x00108000 /* VxWorks image entry point */
    > #define RAM_HIGH_ADRS 0x00008000 /* Boot image entry point */
    >
    > /*
    > * The macro INCLUDE_ADD_BOOTMEM enables sysHwInit2,sysLib.c code which
    >
    > * adds some upper memory (>1MB) to the bootrom image memory pool.
    > * It should not be defined for x86 systems with limited memory,< 4MB.
    >
    > * The default value for ADDED_BOOTMEM_SIZE is 0x00200000 (2MB).
    > * This value may be increased, but one must ensure that the pool
    > * does not overlap with the downloaded vxWorks image. If there is
    > * an overlap, then loading the vxWorks runtime image will corrupt
    > * the added memory pool. The calculation is:
    > * (RAM_LOW_ADRS + vxWorks image size) < (memTopPhys -
    > ADDED_BOOTMEM_SIZE)
    > * Where: RAM_LOW_ADRS == 0x00108000 and memTopPhys is from sysLib.c.
    > * This corrects SPR#21338.
    > */
    >
    > #define INCLUDE_ADD_BOOTMEM /* Add upper memory to low memory bootrom
    > */
    > #define ADDED_BOOTMEM_SIZE 0x00200000 /* 2MB */
    >
    > #endif /* INCconfigh */
    >
    > #if defined(PRJ_BUILD)
    > #include "prjParams.h"
    > #endif
    >
    >
    >
    > thanks...........



+ Reply to Thread