简体   繁体   English

在Linux中控制SD卡插针

[英]Control of sd-card pins in Linux

Is it possible to control SD card reader register pins from Linux via C/C++ ? 是否可以通过C / C ++从Linux控制SD卡读卡器的寄存器引脚? I have seen people doing it for pcmcia. 我见过有人在做pcmcia。 But never with sd. 但绝不使用SD。

Use lspci to list the devices on your motherboard. 使用lspci列出主板上的设备。 From that you can find the hardware driver. 从中可以找到硬件驱动程序。 If it doesn't already have the capability, you can add ioctl calls to the driver to read and write registers. 如果尚不具备此功能,则可以向驱动程序添加ioctl调用以读取和写入寄存器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM