
WinDriver provides a built-in API for
developers using the AMCC PCI bridge chip set. This API
will speed up your driver development, by doing all the
low-level PCI bridge work for you. The source code for this
API is included with the WinDriver
package.
WinDriver includes a sample application for the S5933.
Use this sample application to diagnose your AMCC based
card. Use the application's source code to build your own
AMCC driver.
Press here
to find out more about Jungo's AMCC diagnostics
application.
|
Sample WinDriver code for the S9533
|
 |
|
 |
The following simple program uses
WinDriver to open a handle to an AMCC S9533 card, and finds
the Memory or IO space base address:
AMCCHANDLE hAmcc;
if (!AMCC_Open (&hAmcc, 0x10e8, 0x4570, 0, 0))
{
printf("no AMCC card found\n");
exit(-1);
}
printf ("The %s base of the AMCC S5933 SPACE0 is 0x%x",
hAmcc->addrDesc[AMCC_ADDR_SPACE0].fIsMemory ?
"Memory" : "IO", hAmcc->addrDesc[addrSpace].dwAddr);
AMCC_Close(hAmcc);
It's that simple.
More AMCC driver samples are available in the WinDriver
toolkit. Download the evaluation version now.
|
|