drivers

Resolve multiple constant drivers for net Error

让人想犯罪 __ 提交于 2019-12-10 12:08:22
问题 I do have following VHDL code example: LIBRARY ieee; USE ieee.std_logic_1164.all; LIBRARY work; ENTITY Test IS PORT ( Nios_Reset_n : IN STD_LOGIC; UserLed : OUT STD_LOGIC_VECTOR(4 DOWNTO 0) ); END Test; ARCHITECTURE bdf_type OF Test IS COMPONENT misc PORT( reset_reset_n : IN STD_LOGIC; userleds_external_connection_export : OUT STD_LOGIC_VECTOR(4 DOWNTO 0) ); END COMPONENT; BEGIN b2v_M1 : misc PORT MAP( reset_reset_n => Nios_Reset_n, userleds_external_connection_export => UserLed); UserLed(0)

USB Driver Compilation Error

拈花ヽ惹草 提交于 2019-12-10 11:18:05
问题 I'm currently trying to compile a Linux USB UART driver, which is provided here: http://www.exar.com/connectivity/uart-and-bridging-solutions/usb-uarts/xr21v1410 The driver consists of 2 header files and one large C file. These are the contents of the Makefile: obj-m := vizzini.o KERNELDIR ?= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) EXTRA_CFLAGS := -DDEBUG=0 all: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install clean: rm -rf *

.NET File.Exists doesn't work in Windows\System32\Drivers folder?

陌路散爱 提交于 2019-12-08 19:20:55
问题 The process is elevated and I ensured that the path was correct in VS debugger (I'm using Environment.GetFolderPath(Environment.SpecialFolder.System) not hard coding it in) but File.Exists still returns false. The reason I need this is a workaround for ensuring some 3rd party drivers are installed because their registry settings aren't removed on uninstall. I know writes are redirected via virtualization but is this also true for checking a file's existence? 回答1: Yes, virtualization happens

Maximum number of drives in windows?

ぃ、小莉子 提交于 2019-12-08 15:36:16
问题 I'm trying to figure out the available disk space programmatically in windows. For this, I need to first get a list of the available drives, then check which of those are local drives and then query the available bytes on each local drive. I'm a bit stuck on the first part, where the API presents two functions: GetLogicalDrives (http://msdn.microsoft.com/en-us/library/aa364972(VS.85).aspx) which gives you a DWORD with the bits set (bit 0 if drive A is present, bit 1 if drive B etc)

Keyboard device in Unix

一笑奈何 提交于 2019-12-07 12:16:21
问题 This question was migrated from Unix & Linux Stack Exchange because it can be answered on Stack Overflow. Migrated 6 years ago . How to capture all the user input, reading one byte at a time? I did this coding, but it's not working if ((fd = open("/dev/char", O_RDONLY) != 1) { tty = open("/dev/tty", O_RDONLY); tcsetattr(0, TCSANOW, &orig_info); read (fd, &buf, sizeof(char)); } close(fd); I expected the terminal to wait for input, but it didn't. 回答1: The keyboard device itself is one of the

kinect as a webcam

那年仲夏 提交于 2019-12-06 16:17:59
问题 I need to get my kinect device on to the list of cameras in skype. I tried this one, http://www.e2esoft.cn/kinect/, but it doesn't work. Maybe it's because I use OpenNI version 2.x. I installed it as a PrimeSense device, as I'm not allowed to use Microsoft SDK. May be I should write my own driver. But I can't find any source that covers webcam driver writing. 回答1: Here is another alternative that uses OpenNI drivers : http://www.softpedia.com/get/Internet/WebCam/Kinect-Virtual-Camera.shtml .

USB Driver Compilation Error

和自甴很熟 提交于 2019-12-06 07:24:11
I'm currently trying to compile a Linux USB UART driver, which is provided here: http://www.exar.com/connectivity/uart-and-bridging-solutions/usb-uarts/xr21v1410 The driver consists of 2 header files and one large C file. These are the contents of the Makefile: obj-m := vizzini.o KERNELDIR ?= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) EXTRA_CFLAGS := -DDEBUG=0 all: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install clean: rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions vtty This is the error the compiler is throwing

TransactionScope won't work with DB2 provider

谁都会走 提交于 2019-12-06 07:06:55
问题 I've been trying to use TransactionScope with a DB2 database (using DB2 .Net provider v 9.0.0.2 and c# 2.0) which SHOULD be supported according to IBM. I have tried all the advice i could find on the IBM forums (such as here) to no avail. I have enabled XA transactions on my XP Sp2 machine, tried also from a Win 2003 Server machine but i consistently get the infamous error: ERROR [58005] [IBM][DB2/NT] SQL0998N Error occurred during transaction or heuristic processing. Reason Code = "16".

Visual FoxPro driver for 64 bit Windows 7

余生颓废 提交于 2019-12-05 17:29:54
问题 I've installed Visual FoxPro driver from this link on my 64 Bit Windows 7 Home Premium OS and tried to register vfpoledb.dll using REGSVR32. I could able to register this dll but when run my application which accesses VFP database is throwing the following error: System.InvalidOperationException: The 'VFPOLEDB.1' provider is not registered on the local machine. The same application is working fine in 32 bit Windows 7 Home Premium OS without any issues. I have googled for 64 bit VFP driver and

Can Windows drivers be written in Python?

懵懂的女人 提交于 2019-12-05 16:30:03
问题 Can Windows drivers be written in Python? 回答1: Yes. You cannot create the "classic" kernel-mode drivers. However, starting with XP, Windows offers a User-Mode Driver Framework. They can't do everything, obviously - any driver used in booting the OS obviously has to be kernel-mode. But with UMDF, you only need to implement COM components. Besides boot-time drivers, you also can't write UMDF drivers that: Handle interrupts Directly access hardware, such as direct memory access (DMA) have strict