I've developed an IDE interface controller for an ARM920core processor
The controller has been developed in an FPGA.
Actually I view the IDE registers in a memory location:
see this sample:
#define EXTENSIONBOARD_IO_BASE_ADDRESS (0x28000000) //nGCS5
#define SectorCountR_OFFSET 0x06 //0x03
#define rSectorCountR (*(volatile U8
so I can access to the register in this form
rSectorCountR= Sector; // sector
The device seems to function very well.
I can read an write sectors with a C program compiled for arm-processor.
Now I want to write a linux driver for this device.
Do I write the driver from scratch or I can modify an existing driver?
Which files Do I need to modify?
Every suggestion are welcome...
Best Regards Brazil