This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

gpmc 驱动 具体的地址进行读写



我用的读函数是linux的read  ssize_t  read(struct  file  *filp,  char __user *buf,  count,  loff_t *offp),for(int i = 0;i<len;i++){fpga_dev.user_buf[i] = readb(fpga_base+i)}它的具体操作是,只能依次地址读取下来,我现在想实现的可以直接读取对应的地址,如我想直接读取0x9上面的值,不想把前8个值读一遍,才能读取0x9上面的值