diff options
| author | Linus Torvalds <torvalds@athlon.transmeta.com> | 2002-02-04 20:26:51 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@athlon.transmeta.com> | 2002-02-04 20:26:51 -0800 |
| commit | 980adcb2cbdd20c15fe63b4c2db12ca0051d8c7d (patch) | |
| tree | 696c33a1fd8c9d41812ebc2be369bbe2cd203565 /include/linux | |
| parent | 9ff086a3d48d6f6e24281e6edb6c804091eda3d1 (diff) | |
v2.4.13 -> v2.4.13.1
- Michael Warfield: computone serial driver update
- Alexander Viro: cdrom module race fixes
- David Miller: Acenic driver fix
- Andrew Grover: ACPI update
- Kai Germaschewski: ISDN update
- Tim Waugh: parport update
- David Woodhouse: JFFS garbage collect sleep
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/cdrom.h | 17 | ||||
| -rw-r--r-- | include/linux/lp.h | 3 | ||||
| -rw-r--r-- | include/linux/mm.h | 2 | ||||
| -rw-r--r-- | include/linux/pci_ids.h | 8 | ||||
| -rw-r--r-- | include/linux/swap.h | 2 |
5 files changed, 29 insertions, 3 deletions
diff --git a/include/linux/cdrom.h b/include/linux/cdrom.h index 5aaa4a6cc191..3329b21a20dd 100644 --- a/include/linux/cdrom.h +++ b/include/linux/cdrom.h @@ -777,11 +777,26 @@ struct cdrom_device_ops { }; /* the general block_device operations structure: */ -extern struct block_device_operations cdrom_fops; +extern int cdrom_open(struct inode *, struct file *); +extern int cdrom_release(struct inode *, struct file *); +extern int cdrom_ioctl(struct inode *, struct file *, unsigned, unsigned long); +extern int cdrom_media_changed(kdev_t); extern int register_cdrom(struct cdrom_device_info *cdi); extern int unregister_cdrom(struct cdrom_device_info *cdi); +static inline void devfs_plain_cdrom(struct cdrom_device_info *cdi, + struct block_device_operations *ops) +{ + char vname[23]; + + sprintf (vname, "cdroms/cdrom%d", cdi->number); + cdi->de = devfs_register (NULL, vname, DEVFS_FL_DEFAULT, + MAJOR (cdi->dev), MINOR (cdi->dev), + S_IFBLK | S_IRUGO | S_IWUGO, + ops, NULL); +} + typedef struct { int data; int audio; diff --git a/include/linux/lp.h b/include/linux/lp.h index e688137e7901..9b04225db16d 100644 --- a/include/linux/lp.h +++ b/include/linux/lp.h @@ -145,6 +145,9 @@ struct lp_struct { struct semaphore port_mutex; wait_queue_head_t dataq; long timeout; + unsigned int best_mode; + unsigned int current_mode; + unsigned long bits; }; /* diff --git a/include/linux/mm.h b/include/linux/mm.h index c94d22c727db..23e7812c5d5b 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -402,6 +402,7 @@ extern unsigned long FASTCALL(get_zeroed_page(unsigned int gfp_mask)); /* * There is only one 'core' page-freeing function. */ +extern void FASTCALL(free_lru_page(struct page *)); extern void FASTCALL(__free_pages(struct page *page, unsigned int order)); extern void FASTCALL(free_pages(unsigned long addr, unsigned int order)); @@ -413,6 +414,7 @@ extern void show_free_areas_node(pg_data_t *pgdat); extern void clear_page_tables(struct mm_struct *, unsigned long, int); +extern int fail_writepage(struct page *); struct page * shmem_nopage(struct vm_area_struct * vma, unsigned long address, int no_share); struct file *shmem_file_setup(char * name, loff_t size); extern void shmem_lock(struct file * file, int lock); diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 383d72b35ed8..145a20ad94cf 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -1261,6 +1261,10 @@ #define PCI_VENDOR_ID_ITE 0x1283 #define PCI_DEVICE_ID_ITE_IT8172G 0x8172 +#define PCI_VENDOR_ID_ITE 0x1283 +#define PCI_DEVICE_ID_ITE_8872 0x8872 + + /* formerly Platform Tech */ #define PCI_VENDOR_ID_ESS_OLD 0x1285 #define PCI_DEVICE_ID_ESS_ESS0100 0x0100 @@ -1501,6 +1505,10 @@ #define PCI_DEVICE_ID_AVANCE_ALG2064 0x2064 #define PCI_DEVICE_ID_AVANCE_2302 0x2302 +#define PCI_VENDOR_ID_AKS 0x416c +#define PCI_DEVICE_ID_AKS_ALADDINCARD 0x0100 +#define PCI_DEVICE_ID_AKS_CPC 0x0200 + #define PCI_VENDOR_ID_NETVIN 0x4a14 #define PCI_DEVICE_ID_NETVIN_NV5000SC 0x5000 diff --git a/include/linux/swap.h b/include/linux/swap.h index 006add2a9e70..34f693fe8a22 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h @@ -192,7 +192,6 @@ do { \ list_del(&(page)->lru); \ ClearPageActive(page); \ nr_active_pages--; \ - DEBUG_LRU_PAGE(page); \ } while (0) #define del_page_from_inactive_list(page) \ @@ -200,7 +199,6 @@ do { \ list_del(&(page)->lru); \ ClearPageInactive(page); \ nr_inactive_pages--; \ - DEBUG_LRU_PAGE(page); \ } while (0) /* |
