Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1169697
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | khalasa@piap.pl (Krzysztof Hałasa) |
| Newsgroups | linux.kernel |
| Subject | Re: Coding style details (checkpatch) |
| Date | Mon, 22 Jun 2015 07:40:02 +0200 |
| Message-ID | <pE2CC-2QP-7@gated-at.bofh.it> (permalink) |
| References | <pD00a-25F-29@gated-at.bofh.it> <pD0tc-2Tl-3@gated-at.bofh.it> <pD1Sh-4Mq-9@gated-at.bofh.it> <pD1Si-4Mq-25@gated-at.bofh.it> <pD2bE-59i-17@gated-at.bofh.it> <pD5VU-26b-9@gated-at.bofh.it> |
| X-Original-To | Joe Perches <joe@perches.com> |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| X-Klms-Rule-ID | 1 |
| X-Klms-Message-Action | clean |
| X-Klms-Antispam-Lua-Profiles | 79655 [Jun 22 2015] |
| X-Klms-Antispam-Version | 5.5.6 |
| X-Klms-Antispam-Envelope-From | khalasa@piap.pl |
| X-Klms-Antispam-Status | not_detected |
| X-Klms-Antispam-Method | none |
| X-Klms-Antispam-Moebius-Timestamps | 3611648, 3611665, 3611558 |
| X-Klms-Antispam-Info | LuaCore: 230 2015-06-18_15-19-46 a57002d05d325a1ca642728c4b1d1e7603231830, Auth:dkim=none |
| X-Klms-Antispam-Interceptor-Info | scan successful |
| X-Klms-Antiphishing | Clean, 2015/06/18 15:23:24 |
| X-Klms-Antivirus | Kaspersky Security 8.0 for Linux Mail Server, version 8.0.1.721, bases: 2015/06/22 01:06:00 #8271670 |
| X-Klms-Antivirus-Status | Clean, skipped |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 41 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Frans Klaver <fransklaver@gmail.com>, Andy Whitcroft <apw@canonical.com>, lkml <linux-kernel@vger.kernel.org> |
| X-Original-Date | Mon, 22 Jun 2015 07:33:42 +0200 |
| X-Original-Message-ID | <m37fqws3wp.fsf@t19.piap.pl> |
| X-Original-References | <m3r3p8rt7w.fsf@t19.piap.pl> <CAH6sp9M7R3chHA+FPG6WV5LqwPy7+TDy1P9qjcfmNAGzALhKOg@mail.gmail.com> <m3fv5ornur.fsf_-_@t19.piap.pl> <CAH6sp9N-e-uGu65B7XsFfqqR100bjWpShHaH613EuMJLQS1a7w@mail.gmail.com> <m3bngcrmvd.fsf@t19.piap.pl> <1434725667.2689.121.camel@perches.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | aioe.org linux.kernel:1169697 |
Show key headers only | View raw
Joe Perches <joe@perches.com> writes:
> How is the macro used?
> #define REG8_1(a0) ((const u16[8]){a0, a0 + 1, a0 + 2, a0 + 3})
#define REG8_1(a0) ((const u16[8]){a0, a0 + 1, a0 + 2, a0 + 3, a0 + 4, a0 + 5, a0 + 6, a0 + 7})
#define REG8_2(a0) ((const u16[8]){a0, a0 + 2, a0 + 4, a0 + 6, a0 + 8, a0 + 0xA, a0 + 0xC, a0 + 0xE})
#define REG8_8(a0) ((const u16[8]){a0, a0 + 8, a0 + 0x10, a0 + 0x18, a0 + 0x20, a0 + 0x28, a0 + 0x30, a0 + 0x38})
#define VDMA_CHANNEL_CONFIG REG8_1(0x10)
#define ADMA_P_ADDR REG8_2(0x18)
#define ADMA_B_ADDR REG8_2(0x19)
#define INTL_HBAR_CTRL REG8_1(0x30)
#define VIDEO_FIELD_CTRL REG8_1(0x39)
#define HSCALER_CTRL REG8_1(0x42)
#define VIDEO_SIZE REG8_1(0x4A)
#define VIDEO_SIZE_F2 REG8_1(0x52)
#define MD_CONF REG8_1(0x60)
#define MD_INIT REG8_1(0x68)
#define MD_MAP0 REG8_1(0x70)
#define VDMA_P_ADDR REG8_8(0x80) /* not used in DMA SG mode */
#define VDMA_WHP REG8_8(0x81)
#define VDMA_B_ADDR REG8_8(0x82)
#define VDMA_F2_P_ADDR REG8_8(0x84)
#define VDMA_F2_WHP REG8_8(0x85)
#define VDMA_F2_B_ADDR REG8_8(0x86)
then
reg_write(vc->dev, VDMA_CHANNEL_CONFIG[vc->ch], dma_cfg);
reg_write(dev, SAT_U[ch], ctrl->val);
reg_write(dev, SAT_V[ch], ctrl->val);
etc.
--
Krzysztof Halasa
Industrial Research Institute for Automation and Measurements PIAP
Al. Jerozolimskie 202, 02-486 Warsaw, Poland
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Coding style details khalasa@piap.pl (Krzysztof Hałasa) - 2015-06-19 10:40 +0200
Re: Coding style details Frans Klaver <fransklaver@gmail.com> - 2015-06-19 11:10 +0200
Re: Coding style details (checkpatch) khalasa@piap.pl (Krzysztof Hałasa) - 2015-06-22 07:40 +0200
Re: Coding style details (checkpatch) Joe Perches <joe@perches.com> - 2015-06-22 08:20 +0200
Re: Coding style details (checkpatch) khalasa@piap.pl (Krzysztof Hałasa) - 2015-06-22 08:40 +0200
Re: Coding style details (checkpatch) Joe Perches <joe@perches.com> - 2015-06-22 08:50 +0200
csiph-web