}};static struct Dm9000_plat_data Mini2440_dm9k_pdata = {The number of digits in the data line is 16 bits, and no e2prom is used. Flags = (Dm9000_platf_16bitonly | Dm9000_platf_no_eeprom),. dev_addr = {0x08,0x90,0x90,0x90,0x90,0x90},//mac address};static struct Platform_device Mini2440_device_eth = {. Name = "dm9000",//device name. id =-1,. num_resources = Array_size (Mini2440_dm9k_resource),. Resource = Mini2440_dm9k_resource,//Resources. Dev = {. Platform_data = mini2440_dm9k_pdata,//Private d
locks and semaphores take the form of "get lock-access critical section-release lock".*************************************************************************************************************** **********5. MutexThe mutex and the semaphore are basically the same. Not introduced.Summary: Concurrency and race are widespread, these mechanisms are a good way to solve the problem, interrupt masking is rarely used alone, atomic operations can only be done for integers, so the spin lock and signal
network card driver from the IBM official website, use USB stick and other tools to upload to Linux server, then compile
RPM-IVH bnx2-
Cd/root/rpmbuild
RPMBUILD-BB Specs/bnx2.spec
Install the compiled driver package
Cd/root/rpmbuild/rpms/x86_64
RPM-IVH bnx2-
After successful installation, the following path will be displayed:/lib/modules/
Copy the generated module files to the directory:/lib/modules/
Load Driver
(struct work_struct *work, void (*function) (void *), void *data);
int queue_work (struct workqueue_struct *queue, struct work_struct *work);
int queue_delayed_work (struct workqueue_struct *queue, struct work_struct *work, unsigned long delay);
The return value of the above two functions is nonzero means that the given work_struct structure is already waiting in the queue
int cancel_delayed_work (struct work_struct *work);
The entry
Transferred from: http://blog.chinaunix.net/uid-15724196-id-128140.html2nd Chapter+---------------------------------------------------+| Write a block device driver |+---------------------------------------------------+| Zhao Lei || Email[email protected]|+---------------------------------------------------+| The copyright of the article belongs to the original author. || You are free to reprint this article, but the original copyright information must be retained.| For commercial use, be sure t
command line parameter support is not very good, there is to add a new file, you need to re-use CMake generation Codeblocks project. But these are small problems, the beginning of the time may be compared to the trouble, the latter should be much better. I also thought that when developing the backend framework, I would code directly under the Codeblocks engineering organization, I used CMake to reorganize the project. Because I'm familiar with CMake, so it's not going to be a problem.So, Ubunt
automatic installation of the driver.
"Always install the best driver software from Windows Update" is the system default option and is also the most convenient. The second option, "Install from Windows Update when the driver software is not found on my Computer", is more conservative and safer than the first option. The last one, "Never install driver software from Windows Update," refuses to install drivers automatically, and is the safest.
Whe
To see if the driver is installed:Lshw-c VideoSee configurure field There is no driver words, if there is content, the graphics card driver installedNVIDIA driver Installation:1, download driver on Nvidia official website2, change the last line of the/etc/inittab file Id:5:initdefault 5 to 3, restart3,sh driver.run file, restart4, after the installation is successful, the Initdefault in the Inittab file is changed back to 5If there is infringement, please informLinux Graphics
This procedure uses the dynamic mapping method to control the LED, the hardware platform is the ok6410 of the Flying LingLed.h: Defining control commands#ifndef _led_h#define _led_h#define led_magic ' M ' #define LED_ON _io (led_magic, 0) #define Led_off _io (LED _magic, 1) #endif Driver LED.C#include Application Led_app.c#include Compile the program, use the command Mknod/dev/leddev C 252 0 To create the device node, the main device number through the Cat/proc/devicesRunning the application
)definitionAmount of Completion:structcompletion com;2)Initialize:Init_completion (com);//If you feel this two-step trouble, you will be given a macro that defines and initializes the declare_completion (COM);3) WaitAmount of Completion:void__sched Wait_for_completion (structCompletion *x);//waiting for a completion to be awakenedint__sched wait_for_completion_interruptible (structCompletion *x);//interruptible wait_for_completionUnsignedLong__sched Wait_for_completion_timeout (structCompletion
In the field of graphic chips, Nvidia is a successor, and its history is only half the size of ATI. At the beginning of 1993, Nvidia was founded by Jen-hsun Huang,,chris Malachowsky and Curtis Priem, but Nvidia was once the strongest in the field of graphic processing, Nvidia's Linux driver installation software kit will automatically check the various details of the computer and automatically install a variety of drivers. Here is a brief introduction
Preface
Linux is a variant of the UNIX operating system, and the principle and idea of writing a driver in Linux is similar to that of other Unix systems, but it is very different for drivers in DOS or window environments. Design the driver in the Linux environment, the thought is concise, the operation is convenient, the function is also very formidable, but the support function is few, can only depend on the function in the kernel, some commonly us
update. After reboot, the computer's sound card problem can be solved perfectly.
In addition, if the computer appears QQ message prompts the sound causes the music to become smaller, this only needs to carry on a simple setting can restore. Right-click the sound icon in the lower right corner, pop-up menu select "Sound", open the "Voice" window, click "Communication", "when Windows detects communication activity" set to "do not do Anything", click "OK", the next time you receive QQ
1, the first mouse right click on the computer desktop icon, and then select "Properties" in the property interface Click "Device Manager Options" into the Device Manager;
2, in the Open Device Manager, select the display adapter, and then right-click to select the driver software, and then choose to automatically search for updated driver software;
3, after the successful search, and then Win7 System Automatic Installation Wizard to detect, and then follow the prompts to install and up
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.