xref: /kernel/linux/linux-6.6/arch/sparc/include/asm/bitext.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/arch/sparc/include/asm/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * bitext.h: Bit string operations on the sparc, specific to architecture.
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Copyright 2002 Pete Zaitcev <zaitcev@yahoo.com>
662306a36Sopenharmony_ci */
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#ifndef _SPARC_BITEXT_H
962306a36Sopenharmony_ci#define _SPARC_BITEXT_H
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#include <linux/spinlock.h>
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_cistruct bit_map {
1462306a36Sopenharmony_ci	spinlock_t lock;
1562306a36Sopenharmony_ci	unsigned long *map;
1662306a36Sopenharmony_ci	int size;
1762306a36Sopenharmony_ci	int used;
1862306a36Sopenharmony_ci	int last_off;
1962306a36Sopenharmony_ci	int last_size;
2062306a36Sopenharmony_ci	int first_free;
2162306a36Sopenharmony_ci	int num_colors;
2262306a36Sopenharmony_ci};
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ciint bit_map_string_get(struct bit_map *t, int len, int align);
2562306a36Sopenharmony_civoid bit_map_clear(struct bit_map *t, int offset, int len);
2662306a36Sopenharmony_civoid bit_map_init(struct bit_map *t, unsigned long *map, int size);
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci#endif /* defined(_SPARC_BITEXT_H) */
29

Indexes created Thu Nov 07 10:32:03 CST 2024