Deleted Added
full compact
pci.h (219820) pci.h (219902)
1/*-
2 * Copyright (c) 2010 Isilon Systems, Inc.
3 * Copyright (c) 2010 iX Systems, Inc.
4 * Copyright (c) 2010 Panasas, Inc.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 285 unchanged lines hidden (view full) ---

294#define PCI_CAP_ID_EXP PCIY_EXPRESS
295#define PCI_CAP_ID_PCIX PCIY_PCIX
296
297static inline int
298pci_find_capability(struct pci_dev *pdev, int capid)
299{
300 int reg;
301
1/*-
2 * Copyright (c) 2010 Isilon Systems, Inc.
3 * Copyright (c) 2010 iX Systems, Inc.
4 * Copyright (c) 2010 Panasas, Inc.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 285 unchanged lines hidden (view full) ---

294#define PCI_CAP_ID_EXP PCIY_EXPRESS
295#define PCI_CAP_ID_PCIX PCIY_PCIX
296
297static inline int
298pci_find_capability(struct pci_dev *pdev, int capid)
299{
300 int reg;
301
302 if (pci_find_extcap(pdev->dev.bsddev, capid, &reg))
302 if (pci_find_cap(pdev->dev.bsddev, capid, ®))
303 return (0);
304 return (reg);
305}
306
307static inline int
308pci_read_config_byte(struct pci_dev *pdev, int where, u8 *val)
309{
310

--- 270 unchanged lines hidden ---
303 return (0);
304 return (reg);
305}
306
307static inline int
308pci_read_config_byte(struct pci_dev *pdev, int where, u8 *val)
309{
310

--- 270 unchanged lines hidden ---