arch/arm/mach-s3c/devs.c
Source file repositories/reference/linux-study-clean/arch/arm/mach-s3c/devs.c
File Facts
- System
- Linux kernel
- Corpus path
arch/arm/mach-s3c/devs.c- Extension
.c- Size
- 9679 bytes
- Lines
- 400
- Domain
- Architecture Layer
- Bucket
- arch/arm
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/gpio.hlinux/kernel.hlinux/types.hlinux/interrupt.hlinux/list.hlinux/timer.hlinux/init.hlinux/serial_core.hlinux/serial_s3c.hlinux/platform_device.hlinux/io.hlinux/slab.hlinux/string.hlinux/dma-mapping.hlinux/gfp.hlinux/mmc/host.hlinux/ioport.hlinux/sizes.hlinux/platform_data/s3c-hsotg.hasm/irq.hasm/mach/arch.hasm/mach/map.hasm/mach/irq.hirqs.hmap.hgpio-samsung.hgpio-cfg.hcpu.hdevs.hfb.hlinux/platform_data/i2c-s3c2410.hkeypad.h
Detected Declarations
function s3c_fb_set_platdatafunction s3c_sdhci0_set_platdatafunction s3c_sdhci1_set_platdatafunction s3c_sdhci2_set_platdatafunction s3c_sdhci3_set_platdatafunction s3c_i2c0_set_platdatafunction s3c_i2c1_set_platdatafunction samsung_keypad_set_platdatafunction samsung_pwm_set_platdatafunction dwc2_hsotg_set_platdatafunction s3c64xx_spi0_set_platdata
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
//
// Copyright (c) 2011 Samsung Electronics Co., Ltd.
// http://www.samsung.com
//
// Base Samsung platform device definitions
#include <linux/gpio.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/interrupt.h>
#include <linux/list.h>
#include <linux/timer.h>
#include <linux/init.h>
#include <linux/serial_core.h>
#include <linux/serial_s3c.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/dma-mapping.h>
#include <linux/gfp.h>
#include <linux/mmc/host.h>
#include <linux/ioport.h>
#include <linux/sizes.h>
#include <linux/platform_data/s3c-hsotg.h>
#include <asm/irq.h>
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
#include <asm/mach/irq.h>
#include "irqs.h"
#include "map.h"
#include "gpio-samsung.h"
#include "gpio-cfg.h"
#include "cpu.h"
#include "devs.h"
#include "fb.h"
#include <linux/platform_data/i2c-s3c2410.h>
#include "keypad.h"
#include "pwm-core.h"
#include "sdhci.h"
#include "usb-phy.h"
#include <linux/platform_data/asoc-s3c.h>
#include <linux/platform_data/spi-s3c64xx.h>
#define samsung_device_dma_mask (*((u64[]) { DMA_BIT_MASK(32) }))
/* FB */
#ifdef CONFIG_S3C_DEV_FB
static struct resource s3c_fb_resource[] = {
[0] = DEFINE_RES_MEM(S3C_PA_FB, SZ_16K),
[1] = DEFINE_RES_IRQ(IRQ_LCD_VSYNC),
[2] = DEFINE_RES_IRQ(IRQ_LCD_FIFO),
[3] = DEFINE_RES_IRQ(IRQ_LCD_SYSTEM),
};
struct platform_device s3c_device_fb = {
.name = "s3c-fb",
.id = -1,
.num_resources = ARRAY_SIZE(s3c_fb_resource),
.resource = s3c_fb_resource,
.dev = {
.dma_mask = &samsung_device_dma_mask,
.coherent_dma_mask = DMA_BIT_MASK(32),
},
};
void __init s3c_fb_set_platdata(struct s3c_fb_platdata *pd)
{
s3c_set_platdata(pd, sizeof(struct s3c_fb_platdata),
&s3c_device_fb);
}
#endif /* CONFIG_S3C_DEV_FB */
/* HSMMC */
#ifdef CONFIG_S3C_DEV_HSMMC
static struct resource s3c_hsmmc_resource[] = {
[0] = DEFINE_RES_MEM(S3C_PA_HSMMC0, SZ_4K),
[1] = DEFINE_RES_IRQ(IRQ_HSMMC0),
};
struct s3c_sdhci_platdata s3c_hsmmc0_def_platdata = {
.max_width = 4,
.host_caps = (MMC_CAP_4_BIT_DATA |
MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED),
Annotation
- Immediate include surface: `linux/gpio.h`, `linux/kernel.h`, `linux/types.h`, `linux/interrupt.h`, `linux/list.h`, `linux/timer.h`, `linux/init.h`, `linux/serial_core.h`.
- Detected declarations: `function s3c_fb_set_platdata`, `function s3c_sdhci0_set_platdata`, `function s3c_sdhci1_set_platdata`, `function s3c_sdhci2_set_platdata`, `function s3c_sdhci3_set_platdata`, `function s3c_i2c0_set_platdata`, `function s3c_i2c1_set_platdata`, `function samsung_keypad_set_platdata`, `function samsung_pwm_set_platdata`, `function dwc2_hsotg_set_platdata`.
- Atlas domain: Architecture Layer / arch/arm.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.