... . . . . . .. . . . CMI 125 West Park Loop Huntsville, AL 36806 Phone 256.722.0175 Fax 256.722.0144 Chandler/May, Inc. VxWorks Device Dr
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 8 certain board support packages. This is due to the fact that PCI memory and I/O s
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 9 5.1 FLASH2DrvInstall() The FLASH2DrvInstall () function installs the device dri
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 10 EXAMPLE: STATUS iStatus; /* Install the FLASH2 VxWorks Device Driver. */ iStatu
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 11 5.2 FLASH2DrvRemove() The FLASH2DrvRemove() function is used to remove the FLA
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 12 5.3 open() The open() function is the standard VxWorks entry point to open a c
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 13 5.4 close() The close() function is the standard VxWorks entry point to close
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 14 5.5 read() The read() function is the standard VxWorks entry point to receive
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 15 5.6 write() The write() function is the standard VxWorks entry point to write
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 16 5.7 ioctl() The ioctl() function is the standard VxWorks entry point to perfor
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 17 5.7.1 NO_COMMAND This is an empty driver entry point. This command may be giv
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 18 5.7.2 READ_REGISTER The READ_REGISTER function reads and returns the contents
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 19 DMA_CH_1_TRANS_BYTE_CNT DMA_CH_1_DESC_PTR DMA_CMD_STATUS DMA_MODE_ARB_REG DMA_TH
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 20 PCI_TO_LOC_ROM_RNG LOC_BASE_ADDR_REMAP_EXP_ROM BUS_REG_DESC_0_FOR_PCI_LOC DIR_MA
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 21 DEVICE_ID_VENDOR_ID REVISION_ID MAILBOX_REG_0 MAILBOX_REG_1 *** Messaging Queue
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 22 EXAMPLE: int FileDesc[2]; REG_PARAM theReg; ULONG ulValue; int
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 23 5.7.3 WRITE_REGISTER The WRITE_REGISTER function writes a value to one of the
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 24 DMA_CH_1_DESC_PTR DMA_CMD_STATUS DMA_MODE_ARB_REG DMA_THRESHOLD_REG *** PCI Con
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 25 LOC_BASE_ADDR_REMAP_EXP_ROM BUS_REG_DESC_0_FOR_PCI_LOC DIR_MASTER_TO_PCI_RNG LOC
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 26 REVISION_ID MAILBOX_REG_0 MAILBOX_REG_1 *** Messaging Queue Registers *** OUT_P
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 27 EXAMPLE: int FileDesc[2]; REG_ PARAM theReg; ULONG ulValue = 0xFC000000;
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 1 Acknowledgments Copyright 1999, Chandler/May, Inc. (CMI) ALL RIGHTS RESERVED
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 28 5.7.4 GET_DEVICE_ERROR The GET_DEVICE_ERROR function will return the error th
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 29 EXAMPLE: int FileDesc[2]; int FLASH2Slot = 1; int Status; /* Send the Get Devic
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 30 5.7.5 GET_BASE_ADDRESS The GET_BASE_ADDRESS function will return to the user t
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 2 1 DRIVER OVERVIEW...
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 3 1 Driver Overview The purpose of this document is to describe how to interface
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 4 3 Making the Device Driver In order to use the FLASH2 Device Driver for a parti
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 5 /* GS PMC-FLASH2 SRAM – PMC Site 1 */ { (void *) GS_FLASH2_PMC_1_LOCAL_A
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 6 BSP File Name #define Value mv1603 mv1600.h CPU_PCI_ISA_MEM_ADRS 0xc000
PMC-FLASH2 VxWorks Device Driver User’s Manual October 20, 1999 7 0xfd00 0000 pcore604 pcore60x.h Not Defined 0xb000 0000 jtt686 pci_vme.h
Komentarze do niniejszej Instrukcji