pch_dma.c (0bc2ba94a65d2cd2ad01004d2d3f94f31c6064bd) pch_dma.c (ec5b103ecfde929004b691f29183255aeeadecd5)
1/*
2 * Topcliff PCH DMA controller driver
3 * Copyright (c) 2010 Intel Corporation
4 * Copyright (C) 2011 LAPIS Semiconductor Co., Ltd.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

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

559 pci_pool_free(pd->pool, desc, desc->txd.phys);
560
561 pdc_enable_irq(chan, 0);
562}
563
564static enum dma_status pd_tx_status(struct dma_chan *chan, dma_cookie_t cookie,
565 struct dma_tx_state *txstate)
566{
1/*
2 * Topcliff PCH DMA controller driver
3 * Copyright (c) 2010 Intel Corporation
4 * Copyright (C) 2011 LAPIS Semiconductor Co., Ltd.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

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

559 pci_pool_free(pd->pool, desc, desc->txd.phys);
560
561 pdc_enable_irq(chan, 0);
562}
563
564static enum dma_status pd_tx_status(struct dma_chan *chan, dma_cookie_t cookie,
565 struct dma_tx_state *txstate)
566{
567 struct pch_dma_chan *pd_chan = to_pd_chan(chan);
568 enum dma_status ret;
569
570 spin_lock_irq(&pd_chan->lock);
571 ret = dma_cookie_status(chan, cookie, txstate);
572 spin_unlock_irq(&pd_chan->lock);
573
574 return ret;
567 return dma_cookie_status(chan, cookie, txstate);
575}
576
577static void pd_issue_pending(struct dma_chan *chan)
578{
579 struct pch_dma_chan *pd_chan = to_pd_chan(chan);
580
581 if (pdc_is_idle(pd_chan)) {
582 spin_lock(&pd_chan->lock);

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

1031};
1032
1033module_pci_driver(pch_dma_driver);
1034
1035MODULE_DESCRIPTION("Intel EG20T PCH / LAPIS Semicon ML7213/ML7223/ML7831 IOH "
1036 "DMA controller driver");
1037MODULE_AUTHOR("Yong Wang <yong.y.wang@intel.com>");
1038MODULE_LICENSE("GPL v2");
568}
569
570static void pd_issue_pending(struct dma_chan *chan)
571{
572 struct pch_dma_chan *pd_chan = to_pd_chan(chan);
573
574 if (pdc_is_idle(pd_chan)) {
575 spin_lock(&pd_chan->lock);

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

1024};
1025
1026module_pci_driver(pch_dma_driver);
1027
1028MODULE_DESCRIPTION("Intel EG20T PCH / LAPIS Semicon ML7213/ML7223/ML7831 IOH "
1029 "DMA controller driver");
1030MODULE_AUTHOR("Yong Wang <yong.y.wang@intel.com>");
1031MODULE_LICENSE("GPL v2");
1032MODULE_DEVICE_TABLE(pci, pch_dma_id_table);