- CANMSG("The PIP5 uses a fixed base address of 0x8000,\n");
- CANMSG("please consult your user manual.\n");
- return -ENODEV;
- }
- if (!can_request_io_region(candev->io_addr,0x100,DEVICE_NAME)) {
- CANMSG("Unable to open port: 0x%lx\n",candev->io_addr);
- return -ENODEV;
- }
- else if(!can_request_io_region(candev->io_addr+0x102,0x01,DEVICE_NAME)) {
- can_release_io_region(candev->io_addr,0x100);
- CANMSG("Unable to open port: 0x%lx\n",candev->io_addr+0x102);
- return -ENODEV;
- }
- else {
- DEBUGMSG("Registered IO-memory: 0x%lx - 0x%lx\n", candev->io_addr, candev->io_addr + 0x100 - 1);
- DEBUGMSG("Registered IO-memory: 0x%lx\n", candev->io_addr+0x102);
- }
- return 0;
-}
-
-int pip6_request_io(struct candevice_t *candev)
-{
- if ( (candev->io_addr != 0x1000)&&(candev->io_addr != 0x8000)&&(candev->io_addr != 0xe000)) {
- CANMSG("Invalid base io address\n");
- CANMSG("Valid values for the PIP6 are: 0x1000, 0x8000 or 0xe000\n");