I am using seimens 82532 chip, which has two ports and i need to write driver for accessing both ports of chip. Resource manager can be used to create an entry as /dev/Port1 . So that application can access the driver by opening /dev/Port1.
But my problem is, How to create an entry for /dev/Port2??? Is it possible to call resmgr_attach() two times in single resource manager as shown below
pathID = resmgr_attach (dpp, &rattr, PORT_A, _FTYPE_ANY, 0, &connect_funcs, &io_funcs, &ioattr);
pathID = resmgr_attach (dpp, &rattr, PORT_B, _FTYPE_ANY, 0,
&connect_funcs, &io_funcs, &ioattr);