Fix ups and Clean ups.
[reactos.git] / reactos / drivers / usb / cromwell / linux / linux_wrapper.h
index 1f300f8..acd892e 100644 (file)
@@ -234,8 +234,8 @@ struct pci_driver {
         struct list_head node;
         char *name;
         const struct pci_device_id *id_table;   /* must be non-NULL for probe to be called */
-        int  (*probe)  (struct pci_dev *dev, const struct pci_device_id *id);   /* New device inserted */
-        void (*remove) (struct pci_dev *dev);   /* Device removed (NULL if not a hot-plug capable driver) */
+        int STDCALL (*probe)  (struct pci_dev *dev, const struct pci_device_id *id);   /* New device inserted */
+        void STDCALL (*remove) (struct pci_dev *dev);   /* Device removed (NULL if not a hot-plug capable driver) */
         int  (*save_state) (struct pci_dev *dev, u32 state);    /* Save Device Context */
         int  (*suspend) (struct pci_dev *dev, u32 state);       /* Device suspended */
         int  (*resume) (struct pci_dev *dev);                   /* Device woken up */
@@ -328,7 +328,7 @@ struct usbdevfs_hub_portinfo
 
 #define inw(x) READ_PORT_USHORT((PUSHORT)(x))
 #define outw(x,p) WRITE_PORT_USHORT((PUSHORT)(p),(x))
-#define outl(x,p) WRITE_PORT_ULONG((PUSHORT)(p),(x))
+#define outl(x,p) WRITE_PORT_ULONG((PULONG)(p),(x))
 
 /* The kernel macro for list_for_each_entry makes nonsense (have no clue
  * why, this is just the same definition...) */
@@ -799,4 +799,5 @@ void do_all_timers(void);
 
 #define __KERNEL_DS   0x18
 
+int my_pci_write_config_word(struct pci_dev *, int, u16);