Changeset c47e1a8 in mainline for uspace/srv/drivers/pciintel
- Timestamp:
- 2010-05-21T07:50:04Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d51ee2b
- Parents:
- cf8cc36 (diff), 15b592b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/srv/drivers/pciintel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/drivers/pciintel/Makefile
rcf8cc36 rc47e1a8 27 27 28 28 USPACE_PREFIX = ../../.. 29 LIBS = $(LIBDRV_PREFIX)/libdrv.a $(LIBC_PREFIX)/libc.a30 31 OUTPUT= pciintel29 LIBS = $(LIBDRV_PREFIX)/libdrv.a 30 EXTRA_CFLAGS += -I$(LIBDRV_PREFIX)/include 31 BINARY = pciintel 32 32 33 33 SOURCES = \ 34 34 pci.c 35 35 36 include ../../Makefile.common 37 38 EXTRA_CFLAGS = -I$(LIBDRV_PREFIX)/include 36 include $(USPACE_PREFIX)/Makefile.common -
uspace/srv/drivers/pciintel/pci.c
rcf8cc36 rc47e1a8 41 41 #include <bool.h> 42 42 #include <fibril_synch.h> 43 #include <str ing.h>43 #include <str.h> 44 44 #include <ctype.h> 45 45 #include <macros.h> … … 221 221 pci_dev_data_t *dev_data = (pci_dev_data_t *)dev->driver_data; 222 222 match_id_t *match_id = NULL; 223 char *match_id_str; 223 224 match_id = create_match_id(); 224 225 if (NULL != match_id) { 225 asprintf(&match_id->id, "pci/ven=%04x&dev=%04x", dev_data->vendor_id, dev_data->device_id); 226 asprintf(&match_id_str, "pci/ven=%04x&dev=%04x", dev_data->vendor_id, dev_data->device_id); 227 match_id->id = match_id_str; 226 228 match_id->score = 90; 227 229 add_match_id(&dev->match_ids, match_id);
Note:
See TracChangeset
for help on using the changeset viewer.
