Why do we need device drivers when we already have firmware in the hardware?

For example, for an SD card connected to a Linux machine, we have firmware that works on an SD card, and we have a host controller that also has firmware (my understanding), why do we need a full-fledged SD device driver when can we just send commands to the SD host controller to perform operations?

+4
source share
4 answers

Answer

Firmware is software that runs on the device. Device driverAlso called a software driver, it is software that tells the operating system how to interact with the device. Not all devices have firmware. Typical examples of devices containing firmware are embedded systems such as traffic lights, home appliances, digital clocks, computers, computer peripherals, mobile phones and digital cameras. The firmware contained in these devices is a control program for the device.

+1
source

Analogy for the application (employer), device (employee) and device driver (translator). Hope this clarifies!

, -, . , , , . - .

, , . : RFID- , RFID- .

+1

... SD, - SD ?

sdcard . SDK-.

API, . , - . .

+1

, , .

. , . , , - .

, , (API). , , , , , .

, , . . - . .

, , - . . , . , . , , .

, , . , , . , , .

.

0
source

Source: https://habr.com/ru/post/1621587/


All Articles