OpenBIC
OpenSource Bridge-IC
clock_shell.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef CLOCK_SHELL_H
18#define CLOCK_SHELL_H
19
20#include <shell/shell.h>
21
28};
29
30typedef struct clock_compnt_mapping {
32 uint8_t addr;
33 uint8_t bus;
34 uint8_t *clock_name;
36
37void cmd_set_clock(const struct shell *shell, size_t argc, char **argv);
38void cmd_get_clock(const struct shell *shell, size_t argc, char **argv);
39void cmd_get_clock_status(const struct shell *shell, size_t argc, char **argv);
40void cmd_clear_clock_status(const struct shell *shell, size_t argc, char **argv);
41
42#endif
struct clock_compnt_mapping clock_compnt_mapping
void cmd_clear_clock_status(const struct shell *shell, size_t argc, char **argv)
Definition: clock_shell.c:465
CLOCK_COMPONENT
Definition: clock_shell.h:22
@ CLKGEN_312M
Definition: clock_shell.h:23
@ CLK_COMPONENT_MAX
Definition: clock_shell.h:27
@ CLKBUF_100M_U471
Definition: clock_shell.h:24
@ CLKBUF_100M_U519
Definition: clock_shell.h:25
@ CLKGEN_100M
Definition: clock_shell.h:26
void cmd_set_clock(const struct shell *shell, size_t argc, char **argv)
Definition: clock_shell.c:127
void cmd_get_clock(const struct shell *shell, size_t argc, char **argv)
Definition: clock_shell.c:288
void cmd_get_clock_status(const struct shell *shell, size_t argc, char **argv)
Definition: clock_shell.c:351
Definition: clock_shell.h:30
uint8_t clock_name_index
Definition: clock_shell.h:31
uint8_t * clock_name
Definition: clock_shell.h:34
uint8_t addr
Definition: clock_shell.h:32
uint8_t bus
Definition: clock_shell.h:33