host.h (4e4dca3de9658f364d34924e072f2b64e5c3d267) | host.h (dc00c8b6940aa10ab1ce6a4d10b1bfe7b848781b) |
---|---|
1/* 2 * This file is provided under a dual BSD/GPLv2 license. When using or 3 * redistributing this file, you may do so under either license. 4 * 5 * GPL LICENSE SUMMARY 6 * 7 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 8 * --- 402 unchanged lines hidden (view full) --- 411static inline struct device *scirdev_to_dev(struct isci_remote_device *idev) 412{ 413 if (!idev || !idev->isci_port || !idev->isci_port->isci_host) 414 return NULL; 415 416 return &idev->isci_port->isci_host->pdev->dev; 417} 418 | 1/* 2 * This file is provided under a dual BSD/GPLv2 license. When using or 3 * redistributing this file, you may do so under either license. 4 * 5 * GPL LICENSE SUMMARY 6 * 7 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 8 * --- 402 unchanged lines hidden (view full) --- 411static inline struct device *scirdev_to_dev(struct isci_remote_device *idev) 412{ 413 if (!idev || !idev->isci_port || !idev->isci_port->isci_host) 414 return NULL; 415 416 return &idev->isci_port->isci_host->pdev->dev; 417} 418 |
419enum { 420 ISCI_SI_REVA0, 421 ISCI_SI_REVA2, 422 ISCI_SI_REVB0, 423 ISCI_SI_REVC0 424}; 425 426extern int isci_si_rev; 427 428static inline bool is_a0(void) | 419static inline bool is_a2(struct pci_dev *pdev) |
429{ | 420{ |
430 return isci_si_rev == ISCI_SI_REVA0; | 421 if (pdev->revision < 4) 422 return true; 423 return false; |
431} 432 | 424} 425 |
433static inline bool is_a2(void) | 426static inline bool is_b0(struct pci_dev *pdev) |
434{ | 427{ |
435 return isci_si_rev == ISCI_SI_REVA2; | 428 if (pdev->revision == 4) 429 return true; 430 return false; |
436} 437 | 431} 432 |
438static inline bool is_b0(void) | 433static inline bool is_c0(struct pci_dev *pdev) |
439{ | 434{ |
440 return isci_si_rev == ISCI_SI_REVB0; | 435 if (pdev->revision >= 5) 436 return true; 437 return false; |
441} 442 | 438} 439 |
443static inline bool is_c0(void) 444{ 445 return isci_si_rev > ISCI_SI_REVB0; 446} 447 | |
448void sci_controller_post_request(struct isci_host *ihost, 449 u32 request); 450void sci_controller_release_frame(struct isci_host *ihost, 451 u32 frame_index); 452void sci_controller_copy_sata_response(void *response_buffer, 453 void *frame_header, 454 void *frame_buffer); 455enum sci_status sci_controller_allocate_remote_node_context(struct isci_host *ihost, --- 95 unchanged lines hidden --- | 440void sci_controller_post_request(struct isci_host *ihost, 441 u32 request); 442void sci_controller_release_frame(struct isci_host *ihost, 443 u32 frame_index); 444void sci_controller_copy_sata_response(void *response_buffer, 445 void *frame_header, 446 void *frame_buffer); 447enum sci_status sci_controller_allocate_remote_node_context(struct isci_host *ihost, --- 95 unchanged lines hidden --- |