the driver to the device number, you must first apply for the device number resource from the kernel. Only after the application is complete can you bind the device number to the driver.
How do I apply for a device number from th
Windows XP has been installed recently. The driver cannot be driven by an unknown device in the Windows XP Device Manager, and the driver is displayed as PCI standard ISA birdge) this problem was officially discovered.
Fault description
In the
One, Lenovo desktop computer installation:
The Device Manager's PCI Simple communication controller is AMT driven, Intel AMT is all called Intel Active Management Technology (Intel Active Management Technology), and the embedded operating system of AMT technology is integrated in the hardware (like the BIOS), Its function is realized by the Me (Management engine) on the motherboard (the Me physical
Linux provides a set of functions to handle the PCI configuration block. Before a PCI device can be used, the Linux driver needs to determine the specific parameters of the device from the information in the PCI
ZZ from http://blog.csdn.net/fudan_abc/archive/2007/06/23/1662739.aspx
By the way, record this blog: the Linux USB driver development of Mingyue may be available in the future.
The three important concepts of the Linux device model are bus, device, and driver. that is, bus,
PCI device creation process
This part is divided into two parts for learning. One is to refer to the previous articles, analyze the source code of ld1_and sculld, and the other is to refer to ldd3 to learn PCI.
Part 1Ldd_bus declares the ldd_bus_type of a bus_type structure:
Struct bus_type ldd_bus_type = {
. Name = "LDD ",
. Match = ldd_match,
. Uevent = ldd_u
Knowledge Point Analysis:
Lenovo g50-45 Modified Windows 7 64 system. After installing the official website driver, the Device Manager appears that the PCI encryption/decryption controller cannot install the driver.
Operation Steps:
1, scanning can not find new drivers.
2, inquires the ven_1022dev_153
Linux Device Driver Programming-Linux general technology-Linux programming and kernel information-complex device driver-the following is a detailed description. The complex device drivers mentioned here involve PCI, USB, network d
development.Windows driver according to the kind to divide, roughly divides into the bus drive, the function drive, the filter drives three kinds.USB is a hardware interface and must be disconnected from the lowest-level bus driver.The bus driver is responsible for managing all devices connected to a certain type of bus, such as a USB bus,It is responsible for monitoring the insertion and removal of device
I. Overview
Speaking of writing I2C drivers in Linux, there are currently two main methods: one is to treat I2C devices as a common character device, the other is to use the Linux I2C driver architecture. The two drivers are compared below.
The advantages of the first method (corresponding to the disadvantages of the second method) include:● The idea is straightforward and you don't need to take the time to
-> ldev. dev, dev_attr_dev) printk ("unable to create Dev attribute! \ N ");} //************************************** * **************************/* You must also initialize the function and clear the function in the module. add the registration and logout functions for devices and drivers */sculld_register_dev (sculld_devices + I, i); register_ldd_driver ( sculld_driver); unregister_ldd_device ( sculld_devices [I]. ldev); unregister_ldd_driver ( sculld_driver );
After modification, the module
to make the calling process sleep until I/O becomes possible. If a driver's poll method is NULL, the device is assumed to be non-blocking readable and writable.Monitoring whether GLOBALFIFO can be a non-blocking read-write application #include ... # Define Fifo_clear 0x1 #define Buffer_len main () {int fd,num; char rd_ch[buffer_len];fd_set RfDs, Efds;/* Read and Write file description descriptor *//* to Non-blocking mode open/dev/globalfifo
).
1.4 bits_to_longs (), bit_word (), bit_mask ()
~~~~~~~~~~~~~~~~~~~~~~~~~~
These three macros are from bitops. H, which facilitates bit domain computing:
Bits_to_longs (x)-returns the number of long fields required for the array of the X-bit bitwise fields.
Bit_word (x)-returns the index in long units corresponding to the X-th digit in the array of bit fields.
Bit_mask (x)-returns the long-type mask value corresponding to bit X.
1.5 The ID * and name fields
I. Linux USB driver levels
1. devices, configurations, interfaces, and endpointsThe logical organization of a USB device consists of four layers: device, configuration, interface, and endpoint.
A device usually has one or more configurations:
Each USB device provides d
Access control is sometimes critical for the reliability of a device node. This part of content is only modified on the open and release methods, and some check mechanisms are added.
Exclusive Device
The most rigid access control method is to allow a device to be opened (exclusive) by a single process at a time, which is the simplest access control for a
been used and needs to be modified.
#define BORY_MAJOR 255
.
How can I check whether the character device number is used? Use the following command
bory@borya:~/driver/test$ cat /proc/devices Character devices:255 bory 1 mem 4 /dev/vc/0 4 tty 4 ttyS 5 /dev/tty 5 /dev/console 5 /dev/ptmx 5 ttyprintk 6 lp 7 vcs 10 misc 13 input 21 sg 29 fb 99 ppdev108 p
load it using the modprobe command without knowing the location of the specific module File. The other is the/etc/modules. conf file, which defines aliases of some common devices. The system can find the driver module correctly when this device is needed. For example, alias eth0 E100 indicates that the driver module of the first ENI is E100.
Configure a USB
, process management, file management, storage management, equipment management, network and communication management, user interface, in which the processor management is actually process management. Because the processor is allocated and executed in a process-based unit. and storage management means memory management.Further, the computer has a network card, video card, sound card, etc., you can also external USB flash drive, printer and so on peripherals, so many devices have no classificatio
protocols. Such as PCI, USB, 1394, and IIC. Any device can select a suitable bus to connect to the host. Of course, the host may be the CPU itself. The memory is also connected to the host through the bus. The bus that can be used by the memory is not a peripheral bus. Therefore, the device that uses the same type of bus as the memory is vague about the bus.
An
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.