lsi drivers

Discover lsi drivers, include the articles, news, trends, analysis and practical advice about lsi drivers on alibabacloud.com

Network device drivers under Linux (i)

}};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

concurrency control in Linux device drivers

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

Installation of Linux network card drivers

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

The Nineth chapter of Linux Device Drivers and hardware communication

); void Iowrite16_rep (void *addr, const void *buf, unsigned long count); void Iowrite32_rep (void 8addr, const void *buf, unsigned long count); void Memset_io (void *addr, U8 value, unsigned int count); void Memcpy_fromio (void *dest, void *source, unsigned int count); void Memcpy_toio (void *dest, void *source, unsigned int count); unsigned readb (address); unsigned readw (address); unsigned readl (address); void Writeb (u

Linux Device Drivers, chapter 11th, the kernel data type--note

); List_head (list); List_add (struct list_head *new, struct list_head *head); List_add_tail (struct list_head *new, struct list_head *head); List_del (struct list_head *entry); List_del_init (struct list_head *entry); List_move (struct list_head *entry, struct list_head *head); List_move_tail (struct list_head *entry, struct list_head *head); List_empty (struct list_head *head); List_splice (struct list_head *list, struct list_head *head);

"Linux Device Drivers" The seventh chapter time, delay and delay operation--note

(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

Basic steps for Linux to implement character device drivers

your debugging flag (or not) to Cflagsifeq ($ (DEBUG), y) debflags =-o-g-dscull_debu G # "-O" is needed to expand inlineselse debflags =-o2endifkernel_dir =: /.. /.. /linux-2.6.35.4extra_cflags + = $ (debflags) Extra_cflags + =-i$ (lddinc) extra_cflags +=-i$ (Kernel_dir)/arch/arm/ Mach-w55fa92/includeextra_cflags +=-i$ (Kernel_dir)/arch/armextra_cflags +=-i$ (Kernel_dir)/arch/arm/includeEXTRA_ CFLAGS +=-i$ (Kernel_dir)/arch/arm/include/linuxifneq ($ (kernelrelease),) # Call from KERNEL build SY

Linux Block device drivers <2>

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

Linux device drivers

Fail_device_create;}return 0;Fail_device_create:Class_destroy (Dev_class);Fail_class_create:Cdev_del (demo_cdev);Fail_cdev_add:Unregister_chrdev_region (Dev, demo_count);Fail_register_chrdev:return ret;}void __exit demo_exit (void) {PRINTK ("Enter demo_exit () \ n");Device_destroy (Dev_class, Dev);Class_destroy (Dev_class);Cdev_del (demo_cdev);Unregister_chrdev_region (Dev, demo_count);}Module_init (Demo_init);Module_exit (Demo_exit);Ii.. Makefile Documents/* Makefile */Ifneq ($ (kernelrelease)

[Linux drivers] [Linux Driver] device driver Model related (i)--Sample code

); Device_create_file (my_dev, dev_attr_dev); return ret; } static void My_device_exit (void) { Device_unregister (my_dev); } Module_init (My_device_init); Module_exit (My_device_exit); [CPP]View Plaincopy #include #include #include #include #include Module_license ("Dual BSD/GPL"); extern struct Bus_type my_bus_type; static int my_probe (struct device *dev) { PRINTK ("Driver found device which my Driver can handle!\n"); ret

Dual-Monitor N-card installs Ubuntu drivers and solutions

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

From Linux drivers to apk (2)

", Val); Val=2; printf ("Write value%d to%s.\n", Val,device_name); Write (FD,val,sizeof(Val)); printf ("Read value again: \ n"); Read (FD,val,sizeof(Val)); printf ("val =%d.\n", Val); return 0;}2. Add Compilation rule Add Android.mk in this directorylocal_path:=$ (call My-dir)Include $ (clear_vars)Local_module_tags:=optionalLocal_module:=welcomebinlocal_src_files:=$ (call All-subdir-c-files)Include $ (build_executable)3, compile and implement the direct compilation module MMM vendor/welcomeThen

How to prevent Win7 from automatically installing drivers

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

Linux Graphics drivers

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

LED drivers under Linux, ok6410

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

concurrency control in Linux drivers

)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

How Linux configures NVIDIA graphics drivers

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

How to write Linux device drivers

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

Driving Life 6 Troubleshooting sound card drivers common failures

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

WIN7 64-bit system how to quickly install drivers

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

Total Pages: 15 1 .... 11 12 13 14 15 Go to: Go

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.