From: Ivo van Doorn <ivdoorn@gmail.com>
To: Michael Buesch <mb@bu3sch.de>
Cc: Christoph Hellwig <hch@infradead.org>,
netdev@vger.kernel.org, rt2x00-devel@lfcorreia.dyndns.org
Subject: Re: [PATCH 3/32] rt2x00: use pci_*_consistent for DMA mapping
Date: Fri, 28 Apr 2006 15:39:38 +0200 [thread overview]
Message-ID: <200604281539.39166.IvDoorn@gmail.com> (raw)
In-Reply-To: <200604281533.57372.mb@bu3sch.de>
[-- Attachment #1: Type: text/plain, Size: 1566 bytes --]
On Friday 28 April 2006 15:33, Michael Buesch wrote:
> On Friday 28 April 2006 15:24, you wrote:
> > struct data_ring{
> > /*
> > * net_device where this ring belongs to.
> > */
> > struct net_device *net_dev;
> >
> > /*
> > * Work structure for bottom half interrupt handling.
> > */
> > struct work_struct irq_work;
> >
> > /*
> > * Base address for the device specific data entries.
> > */
> > void *entry;
> >
> > /*
> > * TX queue statistic info.
> > */
> > struct ieee80211_tx_queue_stats_data stats;
> >
> > /*
> > * TX Queue parameters.
> > */
> > struct ieee80211_tx_queue_params tx_params;
> >
> > /*
> > * Base address for data ring.
> > */
> > dma_addr_t data_dma;
> > void *data_addr;
> >
> > /*
> > * Index variables.
> > */
> > u8 index;
> > u8 index_done;
> >
> > /*
> > * Size of device specific data entry structure.
> > */
> > u16 entry_size;
> >
> > /*
> > * Size of packet and descriptor in bytes.
> > */
> > u16 data_size;
> > u16 desc_size;
> > } __attribute__ ((packed));
>
> Why is this packed? I don't believe you write such a data
> structure (which contains dscape specific structs) to some
> device registers.
I can't remember actually, I believe this came from a patch we had received
last year with the legacy drivers from a user.
Since then most structures have received the __attribute__ ((packed)) tag.
I'll create a patch to remove the tags where they are not needed.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2006-04-28 13:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-27 22:02 [PATCH 3/32] rt2x00: use pci_*_consistent for DMA mapping Ivo van Doorn
2006-04-27 22:11 ` Christoph Hellwig
2006-04-28 12:57 ` Ivo van Doorn
2006-04-28 13:15 ` Christoph Hellwig
2006-04-28 13:24 ` Ivo van Doorn
2006-04-28 13:33 ` Michael Buesch
2006-04-28 13:39 ` Ivo van Doorn [this message]
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=200604281539.39166.IvDoorn@gmail.com \
--to=ivdoorn@gmail.com \
--cc=hch@infradead.org \
--cc=mb@bu3sch.de \
--cc=netdev@vger.kernel.org \
--cc=rt2x00-devel@lfcorreia.dyndns.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).