dma.h (599d49de7f69cb5a23e913db24e168ba2f09bd05) dma.h (3372de5813e4da8305002ff6ffbfc0c7012cb319)
1/*
2 * Copyright(c) 2004 - 2009 Intel Corporation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation; either version 2 of the License, or (at your option)
7 * any later version.
8 *

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

433void ioat_start_null_desc(struct ioatdma_chan *ioat_chan);
434void ioat_free_ring_ent(struct ioat_ring_ent *desc, struct dma_chan *chan);
435int ioat_reset_hw(struct ioatdma_chan *ioat_chan);
436enum dma_status
437ioat_tx_status(struct dma_chan *c, dma_cookie_t cookie,
438 struct dma_tx_state *txstate);
439void ioat_cleanup_event(unsigned long data);
440void ioat_timer_event(unsigned long data);
1/*
2 * Copyright(c) 2004 - 2009 Intel Corporation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation; either version 2 of the License, or (at your option)
7 * any later version.
8 *

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

433void ioat_start_null_desc(struct ioatdma_chan *ioat_chan);
434void ioat_free_ring_ent(struct ioat_ring_ent *desc, struct dma_chan *chan);
435int ioat_reset_hw(struct ioatdma_chan *ioat_chan);
436enum dma_status
437ioat_tx_status(struct dma_chan *c, dma_cookie_t cookie,
438 struct dma_tx_state *txstate);
439void ioat_cleanup_event(unsigned long data);
440void ioat_timer_event(unsigned long data);
441enum dma_status ioat_dma_tx_status(struct dma_chan *c, dma_cookie_t cookie,
442 struct dma_tx_state *txstate);
443bool ioat_cleanup_preamble(struct ioatdma_chan *ioat_chan,
444 dma_addr_t *phys_complete);
445int ioat_check_space_lock(struct ioatdma_chan *ioat_chan, int num_descs);
446void ioat_issue_pending(struct dma_chan *chan);
441int ioat_check_space_lock(struct ioatdma_chan *ioat_chan, int num_descs);
442void ioat_issue_pending(struct dma_chan *chan);
447bool reshape_ring(struct ioatdma_chan *ioat, int order);
448void __ioat_issue_pending(struct ioatdma_chan *ioat_chan);
449void ioat_timer_event(unsigned long data);
443void ioat_timer_event(unsigned long data);
450int ioat_quiesce(struct ioatdma_chan *ioat_chan, unsigned long tmo);
451int ioat_reset_sync(struct ioatdma_chan *ioat_chan, unsigned long tmo);
452void __ioat_restart_chan(struct ioatdma_chan *ioat_chan);
453
454/* IOAT Init functions */
455bool is_bwd_ioat(struct pci_dev *pdev);
444
445/* IOAT Init functions */
446bool is_bwd_ioat(struct pci_dev *pdev);
447struct dca_provider *ioat_dca_init(struct pci_dev *pdev, void __iomem *iobase);
456void ioat_kobject_add(struct ioatdma_device *ioat_dma, struct kobj_type *type);
457void ioat_kobject_del(struct ioatdma_device *ioat_dma);
458int ioat_dma_setup_interrupts(struct ioatdma_device *ioat_dma);
459void ioat_stop(struct ioatdma_chan *ioat_chan);
448void ioat_kobject_add(struct ioatdma_device *ioat_dma, struct kobj_type *type);
449void ioat_kobject_del(struct ioatdma_device *ioat_dma);
450int ioat_dma_setup_interrupts(struct ioatdma_device *ioat_dma);
451void ioat_stop(struct ioatdma_chan *ioat_chan);
460struct dca_provider *ioat3_dca_init(struct pci_dev *pdev, void __iomem *iobase);
461#endif /* IOATDMA_H */
452#endif /* IOATDMA_H */