All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Kleine-Budde <mkl@pengutronix.de>
To: Stephane Grosjean <s.grosjean@peak-system.com>,
	Oliver Hartkopp <socketcan@hartkopp.net>
Cc: linux-can Mailing List <linux-can@vger.kernel.org>
Subject: Re: [PATCH v2 4/4] can: peak: add support for PEAK PCAN-PCIe FD CAN-FD boards
Date: Tue, 3 Jan 2017 15:25:46 +0100	[thread overview]
Message-ID: <a86ff34f-856a-b63a-4b6a-8106728d176b@pengutronix.de> (raw)
In-Reply-To: <1483360491-31682-5-git-send-email-s.grosjean@peak-system.com>


[-- Attachment #1.1: Type: text/plain, Size: 1952 bytes --]

On 01/02/2017 01:34 PM, Stephane Grosjean wrote:
> This patch adds the support of the PCAN-PCI Express FD boards made
> by PEAK-System, for computers using the PCI Express slot.
> 
> The PCAN-PCI Express FD has one or two CAN FD channels, depending
> on the model. A galvanic isolation of the CAN ports protects
> the electronics of the card and the respective computer against
> disturbances of up to 500 Volts. The PCAN-PCI Express FD can be operated
> with ambient temperatures in a range of -40 to +85 °C.
> 
> Such boards run an extented version of the CAN-FD IP running into USB
> CAN-FD interfaces from PEAK-System, so this patch adds several new commands
> and their corresponding data types to the PEAK CAN-FD common definitions
> header file too.
> 
> Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>

> +/* CAN-FD channel object */
> +struct pciefd_board;
> +struct pciefd_can {
> +	struct peak_canfd_priv ucan;	/* must be the first member */
> +	void __iomem *reg_base;		/* channel config base addr */
> +	struct pciefd_board *board;	/* reverse link */
> +
> +	struct pucan_command pucan_cmd;	/* command buffer */
> +
> +	u32 flags;

not used.

> +
> +	dma_addr_t rx_dma_laddr;	/* DMA virtual and logical addr */
> +	void *rx_dma_vaddr;		/* for Rx and Tx areas */
> +	dma_addr_t tx_dma_laddr;
> +	void *tx_dma_vaddr;
> +
> +	struct pciefd_page tx_pages[PCIEFD_TX_PAGE_COUNT];
> +	u16 tx_pages_free;		/* free Tx pages counter */
> +	u16 tx_page_index;		/* current page used for Tx */
> +
> +	struct pciefd_irq_status irq_status;	/* current irq status */
> +	u32 irq_tag;				/* next irq tag */
> +};

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  parent reply	other threads:[~2017-01-03 14:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-02 12:34 [PATCH v2 0/4] can: peak: Add support for PCAN-PCIe FD cards Stephane Grosjean
2017-01-02 12:34 ` [PATCH v2 1/4] can: peak: fix usage of usb specific data type Stephane Grosjean
2017-01-02 12:34 ` [PATCH v2 2/4] can: peak: fix usage of const qualifier in pointers args Stephane Grosjean
2017-01-02 12:34 ` [PATCH v2 3/4] can: peak: move header file to new can common subdir Stephane Grosjean
2017-01-02 12:34 ` [PATCH v2 4/4] can: peak: add support for PEAK PCAN-PCIe FD CAN-FD boards Stephane Grosjean
2017-01-03 14:08   ` Marc Kleine-Budde
2017-01-03 14:25   ` Marc Kleine-Budde [this message]
2017-01-03 14:54   ` Marc Kleine-Budde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a86ff34f-856a-b63a-4b6a-8106728d176b@pengutronix.de \
    --to=mkl@pengutronix.de \
    --cc=linux-can@vger.kernel.org \
    --cc=s.grosjean@peak-system.com \
    --cc=socketcan@hartkopp.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.